1 27 package org.objectweb.jonas_ear.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 SecurityRoleRuleSet extends JRuleSetBase { 39 40 44 public SecurityRoleRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "security-role", 54 "org.objectweb.jonas_ear.deployment.xml.SecurityRole"); 55 digester.addSetNext(prefix + "security-role", 56 "addSecurityRole", 57 "org.objectweb.jonas_ear.deployment.xml.SecurityRole"); 58 digester.addCallMethod(prefix + "security-role/description", 59 "setDescription", 0); 60 digester.addCallMethod(prefix + "security-role/role-name", 61 "setRoleName", 0); 62 } 63 } 64 | Popular Tags |