com.ebmwebsourcing.wsstar.addressing.definition
Class WSAddressingFactory

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.addressing.definition.WSAddressingFactory
Direct Known Subclasses:
WSAddressingFactoryImpl

public abstract class WSAddressingFactory
extends java.lang.Object

This abstract class defines a factory API that enables applications to obtain a WSDMFactory capable of producing new Definitions, new WSDLReaders, and new WSDLWriters. Some ideas used here have been shamelessly copied from the wonderful JAXP and Xerces work.

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
protected WSAddressingFactory()
           
 
Method Summary
static WSAddressingFactory getInstance()
           
abstract  EndpointReferenceType newEndpointReferenceType()
           
static WSAddressingFactory newInstance()
          Deprecated. 
abstract  WSAddressingReader newWSAddressingReader()
          Create a new instance of a QoSMetrics.
abstract  WSAddressingWriter newWSAddressingWriter()
           
abstract  void setJAXBObjectFactoryList(java.util.List<java.lang.Class> objectFactories)
          Create a new instance of a WSDLWriterImpl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSAddressingFactory

protected WSAddressingFactory()
Method Detail

getInstance

public static WSAddressingFactory getInstance()

newInstance

@Deprecated
public static WSAddressingFactory newInstance()
                                       throws WSAddressingException
Deprecated. 

Get a new instance of a WSDMFactory. This method follows (almost) the same basic sequence of steps that JAXP follows to determine the fully-qualified class name of the class which implements WSDMFactory.

The steps in order are:

  1. Check the property file META-INF/services/javax.wsdl.factory.WSDLFactory.
  2. Check the javax.wsdl.factory.WSDLFactory system property.
  3. Check the lib/wsdl.properties file in the JRE directory. The key will have the same name as the above system property.
  4. Use the default class name provided by the implementation.

Once an instance of a WSDMFactory is obtained, invoke newDefinition(), newWSDLReader(), or newWSDLWriter(), to create the desired instances.

Throws:
WSAddressingException

newWSAddressingReader

public abstract WSAddressingReader newWSAddressingReader()
                                                  throws WSAddressingException
Create a new instance of a QoSMetrics.

Throws:
WSDMException
WSAddressingException

newWSAddressingWriter

public abstract WSAddressingWriter newWSAddressingWriter()
                                                  throws WSAddressingException
Throws:
WSAddressingException

newEndpointReferenceType

public abstract EndpointReferenceType newEndpointReferenceType()
                                                        throws WSAddressingException
Throws:
WSAddressingException

setJAXBObjectFactoryList

public abstract void setJAXBObjectFactoryList(java.util.List<java.lang.Class> objectFactories)
Create a new instance of a WSDLWriterImpl.



Copyright © 2009-2011 eBM Websourcing. All Rights Reserved.