org.apache.tuscany.core.extension
Class EntryPointBuilderSupport<T extends org.apache.tuscany.model.assembly.Binding>
java.lang.Object
org.apache.tuscany.core.extension.EntryPointBuilderSupport<T>
- All Implemented Interfaces:
- ContextFactoryBuilder
public abstract class EntryPointBuilderSupport<T extends org.apache.tuscany.model.assembly.Binding>
- extends java.lang.Object
- implements ContextFactoryBuilder
A base class for a ContextFactoryBuilder
that creates EntryPointContext
s
- Version:
- $$Rev$$ $$Date$$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
builderRegistry
protected ContextFactoryBuilderRegistry builderRegistry
wireService
protected WireFactoryService wireService
messageFactory
protected MessageFactory messageFactory
bindingClass
protected java.lang.Class bindingClass
EntryPointBuilderSupport
public EntryPointBuilderSupport()
init
public void init()
throws java.lang.Exception
- Throws:
java.lang.Exception
setBuilderRegistry
public void setBuilderRegistry(ContextFactoryBuilderRegistry registry)
setWireService
public void setWireService(WireFactoryService wireService)
setMessageFactory
public void setMessageFactory(MessageFactory msgFactory)
- Sets the factory used to construct wire messages
- Parameters:
msgFactory
-
build
public void build(org.apache.tuscany.model.assembly.AssemblyObject object)
throws BuilderException
- Description copied from interface:
ContextFactoryBuilder
- Creates or updates a context factory based on configuration contained in the given model object. The model object is
decorated with the factory.
- Specified by:
build
in interface ContextFactoryBuilder
- Parameters:
object
- the logical configuration model node
- Throws:
BuilderException
createEntryPointContextFactory
protected abstract EntryPointContextFactory createEntryPointContextFactory(org.apache.tuscany.model.assembly.EntryPoint entryPoint,
MessageFactory msgFactory)
- Callback to create the specific
ContextFactory
type associated with the extending
implementation
- Parameters:
entryPoint
- the entry point being processedmsgFactory
- the message factory to be used by EntryPointContext
when flowing
invocations
-