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 ConnectionDefinitionRuleSet extends JRuleSetBase { 39 40 44 public ConnectionDefinitionRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "connection-definition", 54 "org.objectweb.jonas_rar.deployment.xml.ConnectionDefinition"); 55 digester.addSetProperties(prefix + "connection-definition", "id", "id"); 56 digester.addSetNext(prefix + "connection-definition", 57 "addConnectionDefinition", 58 "org.objectweb.jonas_rar.deployment.xml.ConnectionDefinition"); 59 digester.addCallMethod(prefix + "connection-definition/managedconnectionfactory-class", 60 "setManagedconnectionfactoryClass", 0); 61 digester.addRuleSet(new ConfigPropertyRuleSet(prefix + "connection-definition/")); 62 digester.addCallMethod(prefix + "connection-definition/connectionfactory-interface", 63 "setConnectionfactoryInterface", 0); 64 digester.addCallMethod(prefix + "connection-definition/connectionfactory-impl-class", 65 "setConnectionfactoryImplClass", 0); 66 digester.addCallMethod(prefix + "connection-definition/connection-interface", 67 "setConnectionInterface", 0); 68 digester.addCallMethod(prefix + "connection-definition/connection-impl-class", 69 "setConnectionImplClass", 0); 70 } 71 } 72 | Popular Tags |