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 import org.objectweb.jonas_lib.deployment.rules.EnvironmentRuleSet; 32 33 34 39 40 public class MessageDrivenRuleSet extends JRuleSetBase { 41 42 46 public MessageDrivenRuleSet(String prefix) { 47 super(prefix); 48 } 49 53 54 public void addRuleInstances(Digester digester) { 55 digester.addObjectCreate(prefix + "message-driven", 56 "org.objectweb.jonas_ejb.deployment.xml.MessageDriven"); 57 digester.addSetNext(prefix + "message-driven", 58 "addMessageDriven", 59 "org.objectweb.jonas_ejb.deployment.xml.MessageDriven"); 60 digester.addCallMethod(prefix + "message-driven/description", 61 "setDescription", 0); 62 digester.addCallMethod(prefix + "message-driven/display-name", 63 "setDisplayName", 0); 64 digester.addCallMethod(prefix + "message-driven/small-icon", 65 "setSmallIcon", 0); 66 digester.addCallMethod(prefix + "message-driven/large-icon", 67 "setLargeIcon", 0); 68 digester.addCallMethod(prefix + "message-driven/ejb-name", 69 "setEjbName", 0); 70 digester.addCallMethod(prefix + "message-driven/ejb-class", 71 "setEjbClass", 0); 72 digester.addCallMethod(prefix + "message-driven/transaction-type", 73 "setTransactionType", 0); 74 75 digester.addCallMethod(prefix + "message-driven/message-selector", 76 "setMessageSelector", 0); 77 digester.addCallMethod(prefix + "message-driven/acknowledge-mode", 78 "setAcknowledgeMode", 0); 79 digester.addRuleSet(new MessageDrivenDestinationRuleSet(prefix + "message-driven/")); 80 81 digester.addCallMethod(prefix + "message-driven/messaging-type", 82 "setMessagingType", 0); 83 digester.addCallMethod(prefix + "message-driven/message-destination-type", 84 "setMessageDestinationType", 0); 85 digester.addCallMethod(prefix + "message-driven/message-destination-link", 86 "setMessageDestinationLink", 0); 87 digester.addRuleSet(new ActivationConfigRuleSet(prefix + "message-driven/")); 88 89 90 digester.addRuleSet(new EnvironmentRuleSet(prefix + "message-driven/")); 91 digester.addRuleSet(new SecurityIdentityRuleSet(prefix + "message-driven/")); 92 93 } 94 } 95 | Popular Tags |