@Api public class InstanceBinder extends Object implements ParameterBinder
ParameterBinder that bind known components to method parameters by class.| Constructor and Description |
|---|
InstanceBinder(Object... instances) |
| Modifier and Type | Method and Description |
|---|---|
Object |
bind(int index,
Class<?> type,
InvocableMethod method)
Returns object that will be used as argument for invoked method.
|
boolean |
shouldBind(int index,
Class<?> type,
InvocableMethod method)
Must return true if this binder should be used to bind given parameter.
|
public InstanceBinder(Object... instances)
public boolean shouldBind(int index,
Class<?> type,
InvocableMethod method)
ParameterBindershouldBind in interface ParameterBinderindex - parameter index (first is 0)type - parameter typemethod - invoked methodpublic Object bind(int index, Class<?> type, InvocableMethod method)
ParameterBinderbind in interface ParameterBinderindex - parameter index (first is 0)type - parameter typemethod - invoked methodCopyright © 2025 Suncode. All rights reserved.