Tuscany Core

org.apache.tuscany.core.extension
Class EntryPointBuilderSupport<T extends org.apache.tuscany.model.assembly.Binding>

java.lang.Object
  extended by 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 EntryPointContexts

Version:
$$Rev$$ $$Date$$

Field Summary
protected  java.lang.Class bindingClass
           
protected  ContextFactoryBuilderRegistry builderRegistry
           
protected  MessageFactory messageFactory
           
protected  WireFactoryService wireService
           
 
Constructor Summary
EntryPointBuilderSupport()
           
 
Method Summary
 void build(org.apache.tuscany.model.assembly.AssemblyObject object)
          Creates or updates a context factory based on configuration contained in the given model object.
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
 void init()
           
 void setBuilderRegistry(ContextFactoryBuilderRegistry registry)
           
 void setMessageFactory(MessageFactory msgFactory)
          Sets the factory used to construct wire messages
 void setWireService(WireFactoryService wireService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builderRegistry

protected ContextFactoryBuilderRegistry builderRegistry

wireService

protected WireFactoryService wireService

messageFactory

protected MessageFactory messageFactory

bindingClass

protected java.lang.Class bindingClass
Constructor Detail

EntryPointBuilderSupport

public EntryPointBuilderSupport()
Method Detail

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 processed
msgFactory - the message factory to be used by EntryPointContext when flowing invocations

Tuscany Core

-