org.objectweb.jonas_ws.deployment.api
Class PortComponentDescFactory

java.lang.Object
  extended byorg.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.


Constructor Summary
PortComponentDescFactory()
           
 
Method Summary
static PortComponentDesc newInstance(java.lang.ClassLoader cl, PortComponent pc, 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
 

Constructor Detail

PortComponentDescFactory

public PortComponentDescFactory()
Method Detail

newInstance

public static PortComponentDesc newInstance(java.lang.ClassLoader cl,
                                            PortComponent pc,
                                            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.
parent - container ServiceDesc
Returns:
the created PortComponentDesc
Throws:
WSDeploymentDescException - when instanciation fails.