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 JonasConnectionDefinitionRuleSet extends JRuleSetBase { 39 40 44 public JonasConnectionDefinitionRuleSet(String prefix) { 45 super(prefix); 46 } 47 48 52 53 public void addRuleInstances(Digester digester) { 54 digester.addObjectCreate(prefix + "jonas-connection-definition", 55 "org.objectweb.jonas_rar.deployment.xml.JonasConnectionDefinition"); 56 digester.addSetNext(prefix + "jonas-connection-definition", 57 "addJonasConnectionDefinition", 58 "org.objectweb.jonas_rar.deployment.xml.JonasConnectionDefinition"); 59 digester.addCallMethod(prefix + "jonas-connection-definition/id", 60 "setId", 0); 61 digester.addCallMethod(prefix + "jonas-connection-definition/description", 62 "addDescription", 0); 63 digester.addCallMethod(prefix + "jonas-connection-definition/jndi-name", 64 "setJndiName", 0); 65 digester.addCallMethod(prefix + "jonas-connection-definition/log-enabled", 66 "setLogEnabled", 0); 67 digester.addCallMethod(prefix + "jonas-connection-definition/log-topic", 68 "setLogTopic", 0); 69 digester.addRuleSet(new PoolParamsRuleSet(prefix + "jonas-connection-definition/")); 70 digester.addRuleSet(new JdbcConnParamsRuleSet(prefix + "jonas-connection-definition/")); 71 digester.addRuleSet(new JonasConfigPropertyRuleSet(prefix + "jonas-connection-definition/")); 72 } 73 } 74 | Popular Tags |