1 27 package org.objectweb.jonas_ejb.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 ContainerTransactionRuleSet extends JRuleSetBase { 39 40 44 public ContainerTransactionRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "container-transaction", 54 "org.objectweb.jonas_ejb.deployment.xml.ContainerTransaction"); 55 digester.addSetNext(prefix + "container-transaction", 56 "addContainerTransaction", 57 "org.objectweb.jonas_ejb.deployment.xml.ContainerTransaction"); 58 digester.addCallMethod(prefix + "container-transaction/description", 59 "setDescription", 0); 60 digester.addRuleSet(new MethodRuleSet(prefix + "container-transaction/")); 61 digester.addCallMethod(prefix + "container-transaction/trans-attribute", 62 "setTransAttribute", 0); 63 } 64 } 65 | Popular Tags |