|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.core.builder.impl.DefaultWireBuilder
public class DefaultWireBuilder
The top-most WireBuilder
configured in a runtime. Responsible for constructing wires from source and target chains,
this implementation first bridges the chains and then delegates to any other wire builders.
Constructor Summary | |
---|---|
DefaultWireBuilder()
|
Method Summary | |
---|---|
void |
addWireBuilder(WireBuilder builder)
Adds a wire builder to delegate to |
void |
completeTargetChain(TargetWireFactory targetFactory,
Class targetType,
ScopeContext targetScopeContext)
Finishes processing the target side wire chain. |
void |
connect(SourceWireFactory<?> sourceFactory,
TargetWireFactory<?> targetFactory,
Class targetType,
boolean downScope,
ScopeContext targetScopeContext)
Connects wire configurations of the source proxy factory to corresponding ones in the target proxy to factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWireBuilder()
Method Detail |
---|
public void addWireBuilder(WireBuilder builder)
addWireBuilder
in interface HierarchicalWireBuilder
public void connect(SourceWireFactory<?> sourceFactory, TargetWireFactory<?> targetFactory, Class targetType, boolean downScope, ScopeContext targetScopeContext)
WireBuilder
connect
in interface WireBuilder
sourceFactory
- the proxy factory used in constructing the source side of the wire chaintargetFactory
- the proxy factory used in constructing the target side of the wire chaintargetType
- the context type of the target. Used to determine if a paricular wire builder should construct
the wiredownScope
- true if the component containing the reference (source side) is of a lesser scope than the
target servicetargetScopeContext
- the scope context responsible for managing intance contexts of the target component
typepublic void completeTargetChain(TargetWireFactory targetFactory, Class targetType, ScopeContext targetScopeContext) throws BuilderConfigException
WireBuilder
TargetInvoker
used by target-side proxies is usually set during this
phase.
completeTargetChain
in interface WireBuilder
targetFactory
- the target-side proxy factorytargetType
- the target context typetargetScopeContext
- the target scope
BuilderConfigException
- if an error occurs during the wire buildSource process
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |