org.ow2.easywsdl.extensions.sawsdl
Class SAWSDLFactory

java.lang.Object
  extended by org.ow2.easywsdl.wsdl.ExtensionFactory
      extended by org.ow2.easywsdl.extensions.sawsdl.SAWSDLFactory
Direct Known Subclasses:
SAWSDLFactoryImpl

public abstract class SAWSDLFactory
extends org.ow2.easywsdl.wsdl.ExtensionFactory

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
SAWSDLFactory()
           
 
Method Summary
abstract  Description addExtElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
          Generic method for extension
abstract  Description addSAWSDLElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
          Create a new instance of a Definition.
static SAWSDLFactory newInstance()
          Get a new instance of a WSDLFactory.
abstract  SAWSDLReader newSAWSDLReader()
          Create a new instance of a WSDLReaderImpl.
abstract  SAWSDLReader newSAWSDLReader(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)
          Create a new instance of a WSDLReaderImpl.
abstract  SAWSDLWriter newSAWSDLWriter()
          Create a new instance of a WSDLWriterImpl.
 
Methods inherited from class org.ow2.easywsdl.wsdl.ExtensionFactory
getDescriptionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAWSDLFactory

public SAWSDLFactory()
Method Detail

newInstance

public static SAWSDLFactory newInstance()
                                 throws SAWSDLException
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:
SAWSDLException

addSAWSDLElmt2Description

public abstract Description addSAWSDLElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
                                               throws SAWSDLException
Create a new instance of a Definition.

Throws:
SAWSDLException

addExtElmt2Description

public abstract Description addExtElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
                                            throws SAWSDLException
Generic method for extension

Specified by:
addExtElmt2Description in class org.ow2.easywsdl.wsdl.ExtensionFactory
Throws:
SAWSDLException

newSAWSDLReader

public abstract SAWSDLReader newSAWSDLReader()
                                      throws SAWSDLException
Create a new instance of a WSDLReaderImpl.

Throws:
SAWSDLException

newSAWSDLReader

public abstract SAWSDLReader newSAWSDLReader(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)
                                      throws SAWSDLException
Create a new instance of a WSDLReaderImpl.

Throws:
SAWSDLException

newSAWSDLWriter

public abstract SAWSDLWriter newSAWSDLWriter()
                                      throws SAWSDLException
Create a new instance of a WSDLWriterImpl.

Throws:
SAWSDLException


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