Interface AutoWirer<N extends Node>
-
- All Known Implementing Classes:
AutoWirerImpl
public interface AutoWirer<N extends Node>
Auto wirer.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAutoWireTarget(java.util.function.Function<OfficeNode,? extends N> targetNodeFactory, AutoWire... targetAutoWires)
Adds anAutoWire
target for selection.void
addAutoWireTarget(N targetNode, AutoWire... targetAutoWires)
Adds anAutoWire
target for selection.AutoWirer<N>
createScopeAutoWirer()
<S extends Node>
AutoWireLink<S,N>[]findAutoWireLinks(S sourceNode, AutoWire... sourceAutoWires)
Selects the appropriateAutoWireLink
instances, and does not flag issue if no matchingAutoWireLink
is found.<S extends Node>
AutoWireLink<S,N>[]getAutoWireLinks(S sourceNode, AutoWire... sourceAutoWires)
Selects the appropriateAutoWireLink
instances.
-
-
-
Method Detail
-
addAutoWireTarget
void addAutoWireTarget(N targetNode, AutoWire... targetAutoWires)
Adds anAutoWire
target for selection.
-
addAutoWireTarget
void addAutoWireTarget(java.util.function.Function<OfficeNode,? extends N> targetNodeFactory, AutoWire... targetAutoWires)
Adds anAutoWire
target for selection.- Parameters:
targetNodeFactory
-Function
to create the targetNode
. This enables dynamically adding the targetNode
only if it is selected for linking. TheOfficeNode
is available to configure theManagingOfficeNode
for theManagedObjectSourceNode
.targetAutoWires
- TargetAutoWire
instances supported by theNode
.
-
getAutoWireLinks
<S extends Node> AutoWireLink<S,N>[] getAutoWireLinks(S sourceNode, AutoWire... sourceAutoWires)
Selects the appropriateAutoWireLink
instances.- Type Parameters:
S
- SourceNode
type.- Parameters:
sourceNode
- SourceNode
to link target.sourceAutoWires
- SourceAutoWire
instances to match against targetAutoWire
instances.- Returns:
- Matching
AutoWireLink
instances.
-
findAutoWireLinks
<S extends Node> AutoWireLink<S,N>[] findAutoWireLinks(S sourceNode, AutoWire... sourceAutoWires)
Selects the appropriateAutoWireLink
instances, and does not flag issue if no matchingAutoWireLink
is found.- Type Parameters:
S
- SourceNode
type.- Parameters:
sourceNode
- SourceNode
to link target.sourceAutoWires
- SourceAutoWire
instances to match against targetAutoWire
instances.- Returns:
- Matching
AutoWireLink
instances.
-
-