com.ebmwebsourcing.wsstar.dm
Class WSDMFactory

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.dm.WSDMFactory
Direct Known Subclasses:
WSDMFactoryImpl

public abstract class WSDMFactory
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
WSDMFactory()
           
 
Method Summary
abstract  org.w3c.dom.Document addManageabilityReferencesInInterfaceOfEndpoint(java.net.URL wsdl, javax.xml.namespace.QName serviceName, java.lang.String endpoint)
           
abstract  org.w3c.dom.Document createWSDMWSDL(javax.xml.namespace.QName service, java.lang.String endpoint)
           
static WSDMFactory newInstance()
          Get a new instance of a WSDMFactory.
abstract  QoSDuration newQoSDuration()
          Create a new instance of a QoSDuration.
abstract  QoSInteger newQoSInteger()
          Create a new instance of a QoSInteger.
abstract  QoSMetrics newQoSMetrics()
          Create a new instance of a QoSMetrics.
abstract  WSDMReader newWSDMReader()
          Create a new instance of a WSDLReaderImpl.
abstract  WSDMWriter newWSDMWriter()
          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

WSDMFactory

public WSDMFactory()
Method Detail

newInstance

public static WSDMFactory newInstance()
                               throws WSDMException
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:
WSDMException

newQoSMetrics

public abstract QoSMetrics newQoSMetrics()
                                  throws WSDMException
Create a new instance of a QoSMetrics.

Throws:
WSDMException

newQoSDuration

public abstract QoSDuration newQoSDuration()
                                    throws WSDMException
Create a new instance of a QoSDuration.

Throws:
WSDMException

newQoSInteger

public abstract QoSInteger newQoSInteger()
                                  throws WSDMException
Create a new instance of a QoSInteger.

Throws:
WSDMException

newWSDMReader

public abstract WSDMReader newWSDMReader()
                                  throws WSDMException
Create a new instance of a WSDLReaderImpl.

Throws:
WSDMException

newWSDMWriter

public abstract WSDMWriter newWSDMWriter()
                                  throws WSDMException
Create a new instance of a WSDLWriterImpl.

Throws:
WSDMException

createWSDMWSDL

public abstract org.w3c.dom.Document createWSDMWSDL(javax.xml.namespace.QName service,
                                                    java.lang.String endpoint)
                                             throws WSDMException
Throws:
WSDMException

addManageabilityReferencesInInterfaceOfEndpoint

public abstract org.w3c.dom.Document addManageabilityReferencesInInterfaceOfEndpoint(java.net.URL wsdl,
                                                                                     javax.xml.namespace.QName serviceName,
                                                                                     java.lang.String endpoint)
                                                                              throws WSDMException
Throws:
WSDMException


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