1 27 package org.objectweb.jonas_rar.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 37 38 public class JonasConnectorRuleSet extends JRuleSetBase { 39 40 43 private static final String CONNECTOR_PREFIX = "jonas-connector/"; 44 45 48 private static final String OLDCONNECTOR_PREFIX = "jonas-resource/"; 49 50 53 public JonasConnectorRuleSet() { 54 super(CONNECTOR_PREFIX); 55 } 56 57 61 private JonasConnectorRuleSet(String prefix) { 62 super(prefix); 63 } 64 65 69 70 public void addRuleInstances(Digester digester) { 71 digester.addCallMethod(prefix + "jndi-name", 72 "setJndiName", 0); 73 digester.addCallMethod(prefix + "jndiname", 76 "setJndiName", 0); 77 digester.addCallMethod(prefix + "rarlink", 78 "setRarlink", 0); 79 digester.addCallMethod(prefix + "native-lib", 80 "setNativeLib", 0); 81 digester.addCallMethod(prefix + "log-enabled", 82 "setLogEnabled", 0); 83 digester.addCallMethod(prefix + "log-topic", 84 "setLogTopic", 0); 85 digester.addRuleSet(new PoolParamsRuleSet(prefix)); 86 digester.addRuleSet(new JdbcConnParamsRuleSet(prefix)); 87 digester.addRuleSet(new TmParamsRuleSet(prefix)); 88 digester.addRuleSet(new JonasConfigPropertyRuleSet(prefix)); 89 digester.addRuleSet(new JonasConnectionDefinitionRuleSet(prefix)); 90 digester.addRuleSet(new JonasActivationspecRuleSet(prefix)); 91 digester.addRuleSet(new JonasAdminobjectRuleSet(prefix)); 92 digester.addRuleSet(new JonasSecurityMappingRuleSet(prefix)); 93 if (prefix.equals(CONNECTOR_PREFIX)) { 96 digester.addRuleSet(new JonasConnectorRuleSet(OLDCONNECTOR_PREFIX)); 97 } 98 99 } 100 } 101 | Popular Tags |