1 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 36 37 public class SecurityRoleRuleSet extends JRuleSetBase { 38 39 43 public SecurityRoleRuleSet(String prefix) { 44 super(prefix); 45 } 46 50 51 public void addRuleInstances(Digester digester) { 52 digester.addObjectCreate(prefix + "security-role", 53 "org.objectweb.jonas_lib.deployment.xml.SecurityRole"); 54 digester.addSetNext(prefix + "security-role", 55 "addSecurityRole", 56 "org.objectweb.jonas_lib.deployment.xml.SecurityRole"); 57 digester.addCallMethod(prefix + "security-role/description", 58 "setDescription", 0); 59 digester.addCallMethod(prefix + "security-role/role-name", 60 "setRoleName", 0); 61 } 62 } 63 | Popular Tags |