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 37 38 public class MethodPermissionRuleSet extends JRuleSetBase { 39 40 44 public MethodPermissionRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "method-permission", 54 "org.objectweb.jonas_ejb.deployment.xml.MethodPermission"); 55 digester.addSetNext(prefix + "method-permission", 56 "addMethodPermission", 57 "org.objectweb.jonas_ejb.deployment.xml.MethodPermission"); 58 digester.addCallMethod(prefix + "method-permission/description", 59 "setDescription", 0); 60 digester.addCallMethod(prefix + "method-permission/role-name", 61 "addRoleName", 0); 62 digester.addCallMethod(prefix + "method-permission/unchecked", "setUnchecked"); 63 digester.addRuleSet(new MethodRuleSet(prefix + "method-permission/")); 64 } 65 } 66 | Popular Tags |