com.ebmwebsourcing.wsstar.addressing.datatypes.api.refinedabstraction
Class RefinedWsaFactory

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.addressing.datatypes.api.refinedabstraction.RefinedWsaFactory
All Implemented Interfaces:
WsaFactory

public final class RefinedWsaFactory
extends java.lang.Object
implements WsaFactory

Implementation, following the "Singleton" design pattern, of the WsaFactory factory interface. NOTE : "RefinedWsaFactory" class is the "refined abstraction" part of the "Bridge" design pattern.

Author:
Thierry Déjean - EBM Websourcing

Method Summary
 EndpointReferenceType createEndpointReferenceType(java.net.URI address)
          create a minimal EndpointReferenceType object with only mandatory fields set
 MetadataType createMetadataType()
          create a minimal - means empty - MetadataType object
 ReferenceParametersType createReferenceParametersType()
          create a minimal - means empty - EndpointReferenceType object
static WsaFactory getInstance()
          Get the singleton instance of the class once the model's factory has been initialized.
static WsaFactory getInstance(WsaModelFactory modelFactory)
          Initialize model's factory and get the singleton instance of the class
 WsaModelFactory getModel()
          Get the model's factory implementation used.
 WsaReader getWsaReader()
          Get a instance of WsaReader class
 WsaWriter getWsaWriter()
          Get a instance of WsaWriter class
protected  void setModel(WsaModelFactory modelFactory)
          Set the model's factory implementation to used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsaFactory getInstance()
                              throws WsaException
Get the singleton instance of the class once the model's factory has been initialized.

Returns:
the singleton instance of the class
Throws:
WsaException

getInstance

public static WsaFactory getInstance(WsaModelFactory modelFactory)
Initialize model's factory and get the singleton instance of the class

Parameters:
modelFactory - then model's factory implementation.
Returns:
the singleton instance of the class

getModel

public WsaModelFactory getModel()
Get the model's factory implementation used. In "Bridge" design pattern language it is the "ConcreteImplementor"

Returns:
the model's factory implementation used

setModel

protected void setModel(WsaModelFactory modelFactory)
Set the model's factory implementation to used. In "Bridge" design pattern language it is the "ConcreteImplementor"

Parameters:
modelFactory - an instance of model's factory implementation

createEndpointReferenceType

public EndpointReferenceType createEndpointReferenceType(java.net.URI address)
Description copied from interface: WsaFactory
create a minimal EndpointReferenceType object with only mandatory fields set

Specified by:
createEndpointReferenceType in interface WsaFactory
Parameters:
address - of the endpoint to create, as a URI object
Returns:
an EndpointReferenceType object with address set

createReferenceParametersType

public ReferenceParametersType createReferenceParametersType()
Description copied from interface: WsaFactory
create a minimal - means empty - EndpointReferenceType object

Specified by:
createReferenceParametersType in interface WsaFactory
Returns:
an empty ReferenceParametersType object

createMetadataType

public MetadataType createMetadataType()
Description copied from interface: WsaFactory
create a minimal - means empty - MetadataType object

Specified by:
createMetadataType in interface WsaFactory
Returns:
an empty MetadataType object

getWsaReader

public WsaReader getWsaReader()
Description copied from interface: WsaFactory
Get a instance of WsaReader class

Specified by:
getWsaReader in interface WsaFactory
Returns:
an instance of of WsaReader class

getWsaWriter

public WsaWriter getWsaWriter()
Description copied from interface: WsaFactory
Get a instance of WsaWriter class

Specified by:
getWsaWriter in interface WsaFactory
Returns:
an instance of of WsaWriter class


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