org.ow2.easywsdl.extensions.multiple
Class MultipleExtFactory

java.lang.Object
  extended by org.ow2.easywsdl.extensions.multiple.MultipleExtFactory
Direct Known Subclasses:
MultipleExtFactoryImpl

public abstract class MultipleExtFactory
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 Boissel-Dallier - eBM WebSourcing

Constructor Summary
MultipleExtFactory()
           
 
Method Summary
abstract  Description addMultipleExtElmt2Description(java.util.List<org.ow2.easywsdl.wsdl.ExtensionFactory> absFactories, org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
          Create a new instance of a Definition.
static MultipleExtFactory newInstance()
          Get a new instance of a WSDLFactory.
abstract  MultipleExtReader newMultipleExtReader()
          Create a new instance of a MultipleExtReaderImpl.
abstract  MultipleExtReader newMultipleExtReader(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)
          Create a new instance of a MultipleExtReaderImpl.
abstract  MultipleExtWriter newMultipleExtWriter()
          Create a new instance of a MultipleExtWriterImpl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleExtFactory

public MultipleExtFactory()
Method Detail

newInstance

public static MultipleExtFactory newInstance()
                                      throws MultipleExtException
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 MultipleExtFactory is obtained, newMultipleExtReader(), or newMultipleExtWriter(), to create the desired instances.

Throws:
MultipleExtException

addMultipleExtElmt2Description

public abstract Description addMultipleExtElmt2Description(java.util.List<org.ow2.easywsdl.wsdl.ExtensionFactory> absFactories,
                                                           org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
                                                    throws MultipleExtException
Create a new instance of a Definition.

Throws:
MultipleExtException

newMultipleExtReader

public abstract MultipleExtReader newMultipleExtReader()
                                                throws MultipleExtException
Create a new instance of a MultipleExtReaderImpl.

Throws:
MultipleExtException

newMultipleExtReader

public abstract MultipleExtReader newMultipleExtReader(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)
                                                throws MultipleExtException
Create a new instance of a MultipleExtReaderImpl.

Throws:
MultipleExtException

newMultipleExtWriter

public abstract MultipleExtWriter newMultipleExtWriter()
                                                throws MultipleExtException
Create a new instance of a MultipleExtWriterImpl.

Throws:
MultipleExtException


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