|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.core.extension.ContextFactoryBuilderSupport<T>
public abstract class ContextFactoryBuilderSupport<T extends org.apache.tuscany.model.assembly.Implementation>
A runtime extension point for component types. Subclasses must be genericized according to the model implementation type they
handle, i.e. a subclass of Implementation
, and implement createContextFactory(java.lang.String, T, org.apache.tuscany.model.assembly.Scope)
.
ContextFactory
Field Summary | |
---|---|
protected ContextFactoryBuilderRegistry |
builderRegistry
|
protected java.lang.Class |
implementationClass
|
protected WireFactoryService |
wireFactoryService
|
Constructor Summary | |
---|---|
ContextFactoryBuilderSupport()
Default constructor |
|
ContextFactoryBuilderSupport(WireFactoryService wireFactoryService)
Constructs a new instance |
Method Summary | |
---|---|
void |
build(org.apache.tuscany.model.assembly.AssemblyObject modelObject)
Creates or updates a context factory based on configuration contained in the given model object. |
protected abstract ContextFactory |
createContextFactory(java.lang.String componentName,
T implementation,
org.apache.tuscany.model.assembly.Scope scope)
Subclasses must implement, returning a context factory appropriate to the component implementation |
void |
init()
|
void |
setBuilderRegistry(ContextFactoryBuilderRegistry builderRegistry)
|
void |
setWireFactoryService(WireFactoryService wireFactoryService)
Sets the system service used to construct wire factories |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ContextFactoryBuilderRegistry builderRegistry
protected WireFactoryService wireFactoryService
protected java.lang.Class implementationClass
Constructor Detail |
---|
public ContextFactoryBuilderSupport()
public ContextFactoryBuilderSupport(WireFactoryService wireFactoryService)
wireFactoryService
- the system service responsible for creating wire factoriesMethod Detail |
---|
public void init()
public void setBuilderRegistry(ContextFactoryBuilderRegistry builderRegistry)
public void setWireFactoryService(WireFactoryService wireFactoryService)
public void build(org.apache.tuscany.model.assembly.AssemblyObject modelObject) throws BuilderException
ContextFactoryBuilder
build
in interface ContextFactoryBuilder
modelObject
- the logical configuration model node
BuilderException
protected abstract ContextFactory createContextFactory(java.lang.String componentName, T implementation, org.apache.tuscany.model.assembly.Scope scope)
componentName
- the name of the componentimplementation
- the component implementationscope
- the component implementation scope
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |