Tuscany Core

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

java.lang.Object
  extended by org.apache.tuscany.core.extension.ExternalServiceBuilderSupport<T>
All Implemented Interfaces:
ContextFactoryBuilder

public abstract class ExternalServiceBuilderSupport<T extends org.apache.tuscany.model.assembly.Binding>
extends java.lang.Object
implements ContextFactoryBuilder

A base class for a ContextFactoryBuilder that creates ExternalServiceContexts

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

Field Summary
protected  java.lang.Class bindingClass
           
 
Constructor Summary
ExternalServiceBuilderSupport()
           
ExternalServiceBuilderSupport(WireFactoryService wireService)
           
 
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  ExternalServiceContextFactory createExternalServiceContextFactory(org.apache.tuscany.model.assembly.ExternalService externalService)
          Callback to create the specific ContextFactory type associated with the extending implementation
 void init()
           
 void setBuilderRegistry(ContextFactoryBuilderRegistry registry)
           
 void setWireService(WireFactoryService wireService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bindingClass

protected java.lang.Class bindingClass
Constructor Detail

ExternalServiceBuilderSupport

public ExternalServiceBuilderSupport()

ExternalServiceBuilderSupport

public ExternalServiceBuilderSupport(WireFactoryService wireService)
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)

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

createExternalServiceContextFactory

protected abstract ExternalServiceContextFactory createExternalServiceContextFactory(org.apache.tuscany.model.assembly.ExternalService externalService)
Callback to create the specific ContextFactory type associated with the extending implementation

Parameters:
externalService - the external service being processed

Tuscany Core

-