org.objectweb.jonas_ws.deployment.api
Class PortComponentDescFactory

java.lang.Object
  extended by org.objectweb.jonas_ws.deployment.api.PortComponentDescFactory

public class PortComponentDescFactory
extends java.lang.Object

Factory used to create appropriate PortComponentDesc.
Choice is made in function of the port-component given as input parameter.
If service-impl-bean has a child called servlet-link, then a JaxRpcPortComponentDesc is created.
If service-impl-bean has a child called ejb-link, then a SSBPortComponentDesc is created.


Method Summary
static PortComponentDesc newInstance(java.lang.ClassLoader cl, PortComponent pc, JonasPortComponent jpc, ServiceDesc parent)
          Create a new PortComponentDesc instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static PortComponentDesc newInstance(java.lang.ClassLoader cl,
                                            PortComponent pc,
                                            JonasPortComponent jpc,
                                            ServiceDesc parent)
                                     throws WSDeploymentDescException
Create a new PortComponentDesc instance.

Parameters:
cl - the ClassLoader used to load files (*.wsdl, mapping files, ...).
pc - the PortComponent object representing port-component XML element.
jpc - the JonasPortComponent object representing jonas-port-component XML element.
parent - container ServiceDesc
Returns:
the created PortComponentDesc
Throws:
WSDeploymentDescException - when instanciation fails.