1 26 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 35 public class ServiceRefRuleSet extends JRuleSetBase { 36 37 38 42 public ServiceRefRuleSet(String prefix) { 43 super(prefix); 44 } 45 46 47 51 public void addRuleInstances(Digester digester) { 52 digester.addObjectCreate(prefix + "service-ref", 53 "org.objectweb.jonas_lib.deployment.xml.ServiceRef"); 54 55 digester.addSetNext(prefix + "service-ref", 56 "addServiceRef", 57 "org.objectweb.jonas_lib.deployment.xml.ServiceRef"); 58 59 digester.addCallMethod(prefix + "service-ref/service-ref-name", 60 "setServiceRefName", 0); 61 62 63 digester.addCallMethod(prefix + "service-ref/service-interface", 64 "setServiceInterface", 0); 65 66 digester.addCallMethod(prefix + "service-ref/wsdl-file", 67 "setWsdlFile", 0); 68 69 digester.addCallMethod(prefix + "service-ref/jaxrpc-mapping-file", 70 "setJaxrpcMappingFile", 0); 71 72 73 digester.addRuleSet(new ServiceQnameRuleSet(prefix + "service-ref/")); 74 digester.addRuleSet(new PortComponentRefRuleSet(prefix + "service-ref/")); 75 digester.addRuleSet(new HandlerRuleSet(prefix + "service-ref/")); 76 } 77 78 } 79 | Popular Tags |