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 MethodRuleSet extends JRuleSetBase { 39 40 44 public MethodRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "method", 54 "org.objectweb.jonas_ejb.deployment.xml.Method"); 55 digester.addSetNext(prefix + "method", 56 "addMethod", 57 "org.objectweb.jonas_ejb.deployment.xml.Method"); 58 digester.addCallMethod(prefix + "method/description", 59 "setDescription", 0); 60 digester.addCallMethod(prefix + "method/ejb-name", 61 "setEjbName", 0); 62 digester.addCallMethod(prefix + "method/method-intf", 63 "setMethodIntf", 0); 64 digester.addCallMethod(prefix + "method/method-name", 65 "setMethodName", 0); 66 digester.addRuleSet(new MethodParamsRuleSet(prefix + "method/")); 67 } 68 } 69 | Popular Tags |