public class Targets
extends java.lang.Object
targets
. It consists of:
Constructor and Description |
---|
Targets(ActionRequest actionRequest) |
Targets(java.lang.Object actionOrTarget,
ScopeData scopeData) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
createActionMethodArgument(java.lang.Class type,
java.lang.Object action)
Creates action method arguments.
|
java.lang.Object[] |
extractParametersValues()
Collects all parameters from target into an array.
|
void |
forEachTarget(java.util.function.Consumer<Target> targetConsumer)
Iterates all targets.
|
void |
forEachTargetAndIn(java.util.function.BiConsumer<Target,InjectionPoint> biConsumer) |
void |
forEachTargetAndIn(MadvocScope scope,
java.util.function.BiConsumer<Target,InjectionPoint> biConsumer)
Iterates all targets and for each target iterates all IN injection points of given scope.
|
void |
forEachTargetAndOut(MadvocScope scope,
java.util.function.BiConsumer<Target,InjectionPoint> biConsumer)
Iterates all targets and for each target iterates all OUT injection points of given scope.
|
protected Target[] |
makeTargets(Target actionTarget,
MethodParam[] methodParams)
Joins action and parameters into one single array of Targets.
|
public Targets(java.lang.Object actionOrTarget, ScopeData scopeData)
public Targets(ActionRequest actionRequest)
public void forEachTarget(java.util.function.Consumer<Target> targetConsumer)
public void forEachTargetAndIn(MadvocScope scope, java.util.function.BiConsumer<Target,InjectionPoint> biConsumer)
public void forEachTargetAndIn(java.util.function.BiConsumer<Target,InjectionPoint> biConsumer)
public void forEachTargetAndOut(MadvocScope scope, java.util.function.BiConsumer<Target,InjectionPoint> biConsumer)
public java.lang.Object[] extractParametersValues()
protected Target[] makeTargets(Target actionTarget, MethodParam[] methodParams)
protected java.lang.Object createActionMethodArgument(java.lang.Class type, java.lang.Object action)
Copyright © 2003-present Jodd Team