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 OutboundResourceadapterRuleSet extends JRuleSetBase { 39 40 44 public OutboundResourceadapterRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "outbound-resourceadapter", 54 "org.objectweb.jonas_rar.deployment.xml.OutboundResourceadapter"); 55 digester.addSetNext(prefix + "outbound-resourceadapter", 56 "setOutboundResourceadapter", 57 "org.objectweb.jonas_rar.deployment.xml.OutboundResourceadapter"); 58 digester.addRuleSet(new ConnectionDefinitionRuleSet(prefix + "outbound-resourceadapter/")); 59 digester.addCallMethod(prefix + "outbound-resourceadapter/transaction-support", 60 "setTransactionSupport", 0); 61 digester.addRuleSet(new AuthenticationMechanismRuleSet(prefix + "outbound-resourceadapter/")); 62 digester.addCallMethod(prefix + "outbound-resourceadapter/reauthentication-support", 63 "setReauthenticationSupport", 0); 64 } 65 } 66 | Popular Tags |