org.ow2.easywsdl.wsdl
Class WSDLFactory

java.lang.Object
  extended by org.ow2.easywsdl.wsdl.WSDLFactory
Direct Known Subclasses:
WSDLFactoryImpl

public abstract class WSDLFactory
extends java.lang.Object

This abstract class defines a factory API that enables applications to obtain a WSDLFactory 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
WSDLFactory()
           
 
Method Summary
abstract  Description newDescription(AbsItfDescription.WSDLVersionConstants version)
          Create a new instance of a Definition.
static WSDLFactory newInstance()
          Get a new instance of a WSDLFactory.
abstract  WSDLReader newWSDLReader()
          Create a new instance of a WSDLReaderImpl.
abstract  WSDLReader newWSDLReader(java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
          Create a new instance of a WSDLReaderImpl.
abstract  WSDLWriter newWSDLWriter()
          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

WSDLFactory

public WSDLFactory()
Method Detail

newInstance

public static WSDLFactory newInstance()
                               throws WSDLException
Get a new instance of a WSDLFactory. 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 WSDLFactory.

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 WSDLFactory is obtained, invoke newDefinition(), newWSDLReader(), or newWSDLWriter(), to create the desired instances.

Throws:
WSDLException

newDescription

public abstract Description newDescription(AbsItfDescription.WSDLVersionConstants version)
                                    throws WSDLException
Create a new instance of a Definition.

Throws:
WSDLException

newWSDLReader

public abstract WSDLReader newWSDLReader()
                                  throws WSDLException
Create a new instance of a WSDLReaderImpl.

Throws:
WSDLException

newWSDLReader

public abstract WSDLReader newWSDLReader(java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
                                  throws WSDLException
Create a new instance of a WSDLReaderImpl.

Throws:
WSDLException

newWSDLWriter

public abstract WSDLWriter newWSDLWriter()
                                  throws WSDLException
Create a new instance of a WSDLWriterImpl.

Throws:
WSDLException


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.