org.apache.ws.commons.om
Class OMAbstractFactory

java.lang.Object
  extended byorg.apache.ws.commons.om.OMAbstractFactory

public class OMAbstractFactory
extends java.lang.Object


Field Summary
static java.lang.String OM_FACTORY_NAME_PROPERTY
           
static java.lang.String SOAP_FACTORY_NAME_PROPERTY
           
static java.lang.String SOAP11_FACTORY_NAME_PROPERTY
           
static java.lang.String SOAP12_FACTORY_NAME_PROPERTY
           
 
Constructor Summary
OMAbstractFactory()
           
 
Method Summary
static OMFactory getOMFactory()
          Picks up the default factory implementation from the classpath.
static OMFactory getOMFactory(java.lang.ClassLoader classLoader)
          If user needs to provide his own factory implementation, provide the Class Loader here.
static SOAPFactory getSOAP11Factory()
          Gets the default factory implementation from the classpath.
static SOAPFactory getSOAP11Factory(java.lang.ClassLoader classLoader)
          If user needs to provide his own factory implementation, provide the Class Loader here.
static SOAPFactory getSOAP12Factory()
          Gets the default factory implementation from the classpath.
static SOAPFactory getSOAP12Factory(java.lang.ClassLoader classLoader)
          If user needs to provide his own factory implementation, provide the Class Loader here.
static SOAPFactory getSOAPFactory(java.lang.ClassLoader classLoader, java.lang.String soapFactory)
          Gets the soapFactory factory implementation using the provided classLoader
static SOAPFactory getSOAPFactory(java.lang.String soapFactory)
          Gets the soapFactory factory implementation from the classpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OM_FACTORY_NAME_PROPERTY

public static final java.lang.String OM_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values

SOAP11_FACTORY_NAME_PROPERTY

public static final java.lang.String SOAP11_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values

SOAP12_FACTORY_NAME_PROPERTY

public static final java.lang.String SOAP12_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values

SOAP_FACTORY_NAME_PROPERTY

public static final java.lang.String SOAP_FACTORY_NAME_PROPERTY
See Also:
Constant Field Values
Constructor Detail

OMAbstractFactory

public OMAbstractFactory()
Method Detail

getOMFactory

public static OMFactory getOMFactory()
Picks up the default factory implementation from the classpath.

Returns:
Returns OMFactory.

getOMFactory

public static OMFactory getOMFactory(java.lang.ClassLoader classLoader)
If user needs to provide his own factory implementation, provide the Class Loader here.

Parameters:
classLoader -
Returns:
Returns OMFactory.

getSOAPFactory

public static SOAPFactory getSOAPFactory(java.lang.String soapFactory)
Gets the soapFactory factory implementation from the classpath

Parameters:
soapFactory - Fully qualified SOAP 1.1 or SOAP 1.2 Factory implementation class name
Returns:
Returns the SOAP 1.1 or 1.2 Factory implementation instance corresponding to soapFactory

getSOAPFactory

public static SOAPFactory getSOAPFactory(java.lang.ClassLoader classLoader,
                                         java.lang.String soapFactory)
Gets the soapFactory factory implementation using the provided classLoader

Parameters:
classLoader -
soapFactory - Fully qualified SOAP 1.1 or SOAP 1.2 Factory implementation class name
Returns:
Returns the SOAP 1.1 or 1.2 Factory implementation instance corresponding to soapFactory

getSOAP11Factory

public static SOAPFactory getSOAP11Factory()
Gets the default factory implementation from the classpath.

Returns:
Returns SOAPFactory.

getSOAP11Factory

public static SOAPFactory getSOAP11Factory(java.lang.ClassLoader classLoader)
If user needs to provide his own factory implementation, provide the Class Loader here.

Parameters:
classLoader -
Returns:
Returns SOAPFactory.

getSOAP12Factory

public static SOAPFactory getSOAP12Factory()
Gets the default factory implementation from the classpath.

Returns:
Returns SOAPFactory.

getSOAP12Factory

public static SOAPFactory getSOAP12Factory(java.lang.ClassLoader classLoader)
If user needs to provide his own factory implementation, provide the Class Loader here.

Parameters:
classLoader -
Returns:
Returns SOAPFactory.