Tuscany Core

org.apache.tuscany.core.builder
Interface ContextFactoryBuilder

All Known Subinterfaces:
ConfigurationContext, RuntimeContext, SystemCompositeContext
All Known Implementing Classes:
AbstractCompositeContext, CompositeContextImpl, ContextFactoryBuilderSupport, EntryPointBuilderSupport, ExternalServiceBuilderSupport, HierarchicalBuilder, RuntimeContextImpl, SystemCompositeContextImpl, SystemContextFactoryBuilder, SystemEntryPointBuilder, SystemExternalServiceBuilder

public interface ContextFactoryBuilder

The extension point for component types in the runtime. Implementations perform the first phase of converting an assembly model into a series of runtime artifacts. Specifically, ContextFactoryBuilders are responsible for analyzing the assembly model and producing ContextFactorys that are used to generate executable artifacts such as an Context. In the case of components, the ContextFactory will typically contain configuration for instantiating implementation instances with injected properties and references.

As the assembly model is analyzed, ContextFactoryBuilders are guaranteed to be called first and are expected to decorate the assembly model with ContextFactorys.

The second phase uses WireBuilders to connect the source and target wire chains held in these ContextFactorys to form a completed wire. WireBuilders may use a similar delegation strategy and perform various optimizations.

Version:
$Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $
See Also:
ContextFactory, WireBuilder

Method Summary
 void build(AssemblyObject object)
          Creates or updates a context factory based on configuration contained in the given model object.
 

Method Detail

build

void build(AssemblyObject object)
           throws BuilderException
Creates or updates a context factory based on configuration contained in the given model object. The model object is decorated with the factory.

Parameters:
object - the logical configuration model node
Throws:
BuilderException

Tuscany Core

-