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 QueryRuleSet extends JRuleSetBase { 39 40 44 public QueryRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "query", 54 "org.objectweb.jonas_ejb.deployment.xml.Query"); 55 digester.addSetNext(prefix + "query", 56 "addQuery", 57 "org.objectweb.jonas_ejb.deployment.xml.Query"); 58 digester.addCallMethod(prefix + "query/description", 59 "setDescription", 0); 60 digester.addRuleSet(new QueryMethodRuleSet(prefix + "query/")); 61 digester.addCallMethod(prefix + "query/result-type-mapping", 62 "setResultTypeMapping", 0); 63 digester.addCallMethod(prefix + "query/ejb-ql", 64 "setEjbQl", 0); 65 } 66 } 67 | Popular Tags |