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, ContextFactoryBuilder
s are responsible for analyzing the
assembly model and producing ContextFactory
s 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, ContextFactoryBuilder
s are guaranteed to be called first and are expected to
decorate the assembly model with ContextFactory
s.
The second phase uses WireBuilder
s to connect the source and target wire chains held in these
ContextFactory
s 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. |
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
-