1 27 package org.objectweb.jonas_ejb.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 import org.objectweb.jonas_lib.deployment.rules.EnvironmentRuleSet; 32 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 33 import org.objectweb.jonas_lib.deployment.rules.SecurityRoleRefRuleSet; 34 35 40 41 public class SessionRuleSet extends JRuleSetBase { 42 43 47 public SessionRuleSet(String prefix) { 48 super(prefix); 49 } 50 54 55 public void addRuleInstances(Digester digester) { 56 digester.addObjectCreate(prefix + "session", 57 "org.objectweb.jonas_ejb.deployment.xml.Session"); 58 digester.addSetNext(prefix + "session", 59 "addSession", 60 "org.objectweb.jonas_ejb.deployment.xml.Session"); 61 digester.addCallMethod(prefix + "session/description", 62 "setDescription", 0); 63 digester.addCallMethod(prefix + "session/display-name", 64 "setDisplayName", 0); 65 digester.addCallMethod(prefix + "session/small-icon", 66 "setSmallIcon", 0); 67 digester.addCallMethod(prefix + "session/large-icon", 68 "setLargeIcon", 0); 69 digester.addCallMethod(prefix + "session/ejb-name", 70 "setEjbName", 0); 71 digester.addCallMethod(prefix + "session/home", 72 "setHome", 0); 73 digester.addCallMethod(prefix + "session/remote", 74 "setRemote", 0); 75 digester.addCallMethod(prefix + "session/local-home", 76 "setLocalHome", 0); 77 digester.addCallMethod(prefix + "session/local", 78 "setLocal", 0); 79 digester.addCallMethod(prefix + "session/service-endpoint", 80 "setServiceEndpoint", 0); 81 digester.addCallMethod(prefix + "session/ejb-class", 82 "setEjbClass", 0); 83 digester.addCallMethod(prefix + "session/session-type", 84 "setSessionType", 0); 85 digester.addCallMethod(prefix + "session/transaction-type", 86 "setTransactionType", 0); 87 digester.addRuleSet(new EnvironmentRuleSet(prefix + "session/")); 88 digester.addRuleSet(new SecurityRoleRefRuleSet(prefix + "session/")); 89 digester.addRuleSet(new SecurityIdentityRuleSet(prefix + "session/")); 90 digester.addRuleSet(new IorSecurityConfigRuleSet(prefix + "session/")); 91 } 92 } 93 | Popular Tags |