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