com.ebmwebsourcing.easybpel.model.bpel
Class BPELFactory

java.lang.Object
  extended by com.ebmwebsourcing.easyviper.core.api.factory.AbstractFactoryImpl<com.ebmwebsourcing.easyviper.core.impl.engine.configuration.ConfigurationEngineImpl>
      extended by com.ebmwebsourcing.easybpel.model.bpel.BPELFactory
All Implemented Interfaces:
com.ebmwebsourcing.easyviper.core.api.factory.Factory<com.ebmwebsourcing.easyviper.core.impl.engine.configuration.ConfigurationEngineImpl>
Direct Known Subclasses:
BPELFactoryImpl

public abstract class BPELFactory
extends com.ebmwebsourcing.easyviper.core.api.factory.AbstractFactoryImpl<com.ebmwebsourcing.easyviper.core.impl.engine.configuration.ConfigurationEngineImpl>
implements com.ebmwebsourcing.easyviper.core.api.factory.Factory<com.ebmwebsourcing.easyviper.core.impl.engine.configuration.ConfigurationEngineImpl>

This abstract class defines a factory API that enables applications to obtain a BPELFactory 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

Field Summary
static java.lang.String DEFAULT_NAME
           
 
Fields inherited from class com.ebmwebsourcing.easyviper.core.api.factory.AbstractFactoryImpl
DEFAULT_FACTORY_NAME
 
Constructor Summary
BPELFactory()
           
 
Method Summary
abstract  com.ebmwebsourcing.easyviper.core.api.Core newBPELEngine(com.ebmwebsourcing.easyviper.core.api.engine.configuration.ConfigurationEngine cong, com.ebmwebsourcing.easyviper.core.api.soa.message.MessageConverter converter, int numberOfReceivers, java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Receiver> receiverClass, int numberOfSenders, java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Sender> senderClass, java.util.logging.Logger logger)
          Create the registry of process.
abstract  com.ebmwebsourcing.easyviper.core.api.Core newBPELEngine(com.ebmwebsourcing.easyviper.core.api.soa.message.MessageConverter converter, int numberOfReceivers, java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Receiver> receiverClass, int numberOfSenders, java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Sender> senderClass)
           
abstract  BPELReader newBPELReader()
          Create a new instance of a BPELReaderImpl.
abstract  BPELReader newBPELReader(java.util.Map<BPELReader.FeatureConstants,java.lang.Object> features)
          Create a new instance of a BPELReaderImpl.
abstract  BPELWriter newBPELWriter()
          Create a new instance of a BPELWriterImpl.
static BPELFactory newInstance()
          Get a new instance of a BPELFactory.
abstract  void setJAXBObjectFactoryList(java.util.List<java.lang.Class<?>> objectFactories)
          Create a new instance of a BPELWriterImpl.
 
Methods inherited from class com.ebmwebsourcing.easyviper.core.api.factory.AbstractFactoryImpl
createCore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.easyviper.core.api.factory.Factory
createCore
 

Field Detail

DEFAULT_NAME

public static java.lang.String DEFAULT_NAME
Constructor Detail

BPELFactory

public BPELFactory()
Method Detail

newInstance

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

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

Throws:
BPELException

newBPELReader

public abstract BPELReader newBPELReader()
                                  throws BPELException
Create a new instance of a BPELReaderImpl.

Throws:
BPELException

newBPELReader

public abstract BPELReader newBPELReader(java.util.Map<BPELReader.FeatureConstants,java.lang.Object> features)
                                  throws BPELException
Create a new instance of a BPELReaderImpl.

Throws:
BPELException

newBPELWriter

public abstract BPELWriter newBPELWriter()
                                  throws BPELException
Create a new instance of a BPELWriterImpl.

Throws:
BPELException

newBPELEngine

public abstract com.ebmwebsourcing.easyviper.core.api.Core newBPELEngine(com.ebmwebsourcing.easyviper.core.api.engine.configuration.ConfigurationEngine cong,
                                                                         com.ebmwebsourcing.easyviper.core.api.soa.message.MessageConverter converter,
                                                                         int numberOfReceivers,
                                                                         java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Receiver> receiverClass,
                                                                         int numberOfSenders,
                                                                         java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Sender> senderClass,
                                                                         java.util.logging.Logger logger)
                                                                  throws BPELException
Create the registry of process.

Throws:
BPELException

newBPELEngine

public abstract com.ebmwebsourcing.easyviper.core.api.Core newBPELEngine(com.ebmwebsourcing.easyviper.core.api.soa.message.MessageConverter converter,
                                                                         int numberOfReceivers,
                                                                         java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Receiver> receiverClass,
                                                                         int numberOfSenders,
                                                                         java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.env.Sender> senderClass)
                                                                  throws BPELException
Throws:
BPELException

setJAXBObjectFactoryList

public abstract void setJAXBObjectFactoryList(java.util.List<java.lang.Class<?>> objectFactories)
Create a new instance of a BPELWriterImpl.



Copyright © 2008-2009 eBM WebSourcing. All Rights Reserved.