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.HandlerRuleSet; 32 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 33 import org.objectweb.jonas_lib.deployment.rules.WsdlPortRuleSet; 34 35 42 43 public class PortComponentRuleSet extends JRuleSetBase { 44 45 49 public PortComponentRuleSet(String prefix) { 50 super(prefix); 51 } 52 56 57 public void addRuleInstances(Digester digester) { 58 digester.addObjectCreate(prefix + "port-component", 59 "org.objectweb.jonas_ws.deployment.xml.PortComponent"); 60 digester.addSetNext(prefix + "port-component", 61 "addPortComponent", 62 "org.objectweb.jonas_ws.deployment.xml.PortComponent"); 63 digester.addCallMethod(prefix + "port-component/display-name", 66 "setDisplayName", 0); 67 digester.addCallMethod(prefix + "port-component/port-component-name", 69 "setPortComponentName", 0); 70 digester.addRuleSet(new WsdlPortRuleSet(prefix + "port-component/")); 71 digester.addCallMethod(prefix + "port-component/service-endpoint-interface", 72 "setServiceEndpointInterface", 0); 73 digester.addRuleSet(new ServiceImplBeanRuleSet(prefix + "port-component/")); 74 digester.addRuleSet(new HandlerRuleSet(prefix + "port-component/")); 75 } 76 } 77 | Popular Tags |