1 26 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 35 public class EjbRefRuleSet extends JRuleSetBase { 36 37 41 public EjbRefRuleSet(String prefix) { 42 super(prefix); 43 } 44 45 49 public void addRuleInstances(Digester digester) { 50 digester.addObjectCreate(prefix + "ejb-ref", 51 "org.objectweb.jonas_lib.deployment.xml.EjbRef"); 52 digester.addSetNext(prefix + "ejb-ref", 53 "addEjbRef", 54 "org.objectweb.jonas_lib.deployment.xml.EjbRef"); 55 56 digester.addCallMethod(prefix + "ejb-ref/description", 57 "setDescription", 0); 58 digester.addCallMethod(prefix + "ejb-ref/ejb-ref-name", 59 "setEjbRefName", 0); 60 digester.addCallMethod(prefix + "ejb-ref/ejb-ref-type", 61 "setEjbRefType", 0); 62 digester.addCallMethod(prefix + "ejb-ref/home", 63 "setHome", 0); 64 digester.addCallMethod(prefix + "ejb-ref/remote", 65 "setRemote", 0); 66 digester.addCallMethod(prefix + "ejb-ref/ejb-link", 67 "setEjbLink", 0); 68 69 } 70 71 72 } 73 | Popular Tags |