com.ebmwebsourcing.agreement.definition
Class WSAgreementFactory

java.lang.Object
  extended by com.ebmwebsourcing.agreement.definition.WSAgreementFactory
Direct Known Subclasses:
WSAgreementFactoryImpl

public abstract class WSAgreementFactory
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
WSAgreementFactory()
           
 
Method Summary
abstract  Agreement newAgreement()
           
abstract  AgreementTemplate newAgreementTemplate()
           
static WSAgreementFactory newInstance()
          Get a new instance of a WSDMFactory.
abstract  WSAgreementReader newWSAgreementReader()
          Create a new instance of a QoSMetrics.
abstract  WSAgreementWriter newWSAgreementWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSAgreementFactory

public WSAgreementFactory()
Method Detail

newInstance

public static WSAgreementFactory newInstance()
                                      throws WSAgreementException
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:
WSAgreementException

newWSAgreementReader

public abstract WSAgreementReader newWSAgreementReader()
                                                throws WSAgreementException
Create a new instance of a QoSMetrics.

Throws:
WSDMException
WSAgreementException

newWSAgreementWriter

public abstract WSAgreementWriter newWSAgreementWriter()
                                                throws WSAgreementException
Throws:
WSAgreementException

newAgreement

public abstract Agreement newAgreement()
                                throws WSAgreementException
Throws:
WSAgreementException

newAgreementTemplate

public abstract AgreementTemplate newAgreementTemplate()
                                                throws WSAgreementException
Throws:
WSAgreementException


Copyright © 2009 eBM Websourcing. All Rights Reserved.