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 33 37 38 public class JonasRunAsMappingRuleSet extends JRuleSetBase { 39 40 44 public JonasRunAsMappingRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "jonas-run-as-mapping", 54 "org.objectweb.jonas_ejb.deployment.xml.JonasRunAsMapping"); 55 digester.addSetNext(prefix + "jonas-run-as-mapping", 56 "addJonasRunAsMapping", 57 "org.objectweb.jonas_ejb.deployment.xml.JonasRunAsMapping"); 58 digester.addCallMethod(prefix + "jonas-run-as-mapping/principal-name", 59 "setPrincipalName", 0); 60 digester.addCallMethod(prefix + "jonas-run-as-mapping/role-name", 61 "addRoleName", 0); 62 } 63 } 64 | Popular Tags |