1 27 28 package org.objectweb.jonas_ws.deployment.rules; 29 30 import org.apache.commons.digester.Digester; 31 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 32 33 38 39 public class WebserviceDescriptionRuleSet extends JRuleSetBase { 40 41 45 public WebserviceDescriptionRuleSet(String prefix) { 46 super(prefix); 47 } 48 52 53 public void addRuleInstances(Digester digester) { 54 digester.addObjectCreate(prefix + "webservice-description", 55 "org.objectweb.jonas_ws.deployment.xml.WebserviceDescription"); 56 digester.addSetNext(prefix + "webservice-description", 57 "addWebserviceDescription", 58 "org.objectweb.jonas_ws.deployment.xml.WebserviceDescription"); 59 digester.addCallMethod(prefix + "webservice-description/display-name", 62 "setDisplayName", 0); 63 digester.addCallMethod(prefix + "webservice-description/webservice-description-name", 65 "setWebserviceDescriptionName", 0); 66 digester.addCallMethod(prefix + "webservice-description/wsdl-file", 67 "setWsdlFile", 0); 68 digester.addCallMethod(prefix + "webservice-description/jaxrpc-mapping-file", 69 "setJaxrpcMappingFile", 0); 70 digester.addRuleSet(new PortComponentRuleSet(prefix + "webservice-description/")); 71 } 72 } 73 | Popular Tags |