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.JRuleSetBase; 32 import org.objectweb.jonas_lib.deployment.rules.RunAsRuleSet; 33 34 39 40 public class SecurityIdentityRuleSet extends JRuleSetBase { 41 42 46 public SecurityIdentityRuleSet(String prefix) { 47 super(prefix); 48 } 49 53 54 public void addRuleInstances(Digester digester) { 55 digester.addObjectCreate(prefix + "security-identity", 56 "org.objectweb.jonas_ejb.deployment.xml.SecurityIdentity"); 57 digester.addSetNext(prefix + "security-identity", 58 "setSecurityIdentity", 59 "org.objectweb.jonas_ejb.deployment.xml.SecurityIdentity"); 60 digester.addCallMethod(prefix + "security-identity/description", 61 "setDescription", 0); 62 digester.addRuleSet(new UseCallerIdentityRuleSet(prefix + "security-identity/")); 63 digester.addRuleSet(new RunAsRuleSet(prefix + "security-identity/")); 64 } 65 } 66 | Popular Tags |