1 26 package org.objectweb.jonas_ws.deployment.api; 27 28 import org.objectweb.jonas_ws.deployment.xml.JonasPortComponent; 29 import org.objectweb.jonas_ws.deployment.xml.PortComponent; 30 31 32 40 public class PortComponentDescFactory { 41 42 45 private PortComponentDescFactory() { } 46 47 59 public static PortComponentDesc newInstance(ClassLoader cl, 60 PortComponent pc, 61 JonasPortComponent jpc, 62 ServiceDesc parent) 63 throws WSDeploymentDescException { 64 65 if (pc.getServiceImplBean().getEjbLink() != null) { 67 return new SSBPortComponentDesc(cl, pc, jpc, parent); 68 } else { return new JaxRpcPortComponentDesc(cl, pc, jpc, parent); 70 } 71 } 72 } 73 | Popular Tags |