Class InstanceBinder
java.lang.Object
com.suncode.pwfl.component.support.InstanceBinder
- All Implemented Interfaces:
ParameterBinder
ParameterBinder that bind known components to method parameters by class.- Author:
- Cezary Kozar 31 maj 2016
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(int index, Class<?> type, InvocableMethod method) Returns object that will be used as argument for invoked method.booleanshouldBind(int index, Class<?> type, InvocableMethod method) Must return true if this binder should be used to bind given parameter.
-
Constructor Details
-
InstanceBinder
-
-
Method Details
-
shouldBind
Description copied from interface:ParameterBinderMust return true if this binder should be used to bind given parameter.- Specified by:
shouldBindin interfaceParameterBinder- Parameters:
index- parameter index (first is 0)type- parameter typemethod- invoked method- Returns:
- true if binder is able to bind parameter
-
bind
Description copied from interface:ParameterBinderReturns object that will be used as argument for invoked method.- Specified by:
bindin interfaceParameterBinder- Parameters:
index- parameter index (first is 0)type- parameter typemethod- invoked method- Returns:
- invocation argument
-