1 26 package org.objectweb.jonas_web.deployment.rules; 27 28 import org.apache.commons.digester.Digester; 29 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 36 public class AuthConstraintRuleSet extends JRuleSetBase { 37 38 42 public AuthConstraintRuleSet(String prefix) { 43 super(prefix); 44 } 45 46 47 51 public void addRuleInstances(Digester digester) { 52 digester.addObjectCreate(prefix + "auth-constraint", 53 "org.objectweb.jonas_web.deployment.xml.AuthConstraint"); 54 digester.addSetNext(prefix + "auth-constraint", 55 "setAuthConstraint", 56 "org.objectweb.jonas_web.deployment.xml.AuthConstraint"); 57 58 digester.addCallMethod(prefix + "auth-constraint/description", 59 "addDescription", 0); 60 61 digester.addCallMethod(prefix + "auth-constraint/role-name", 62 "addRoleName", 0); 63 64 } 65 } 66 67 | Popular Tags |