- All Known Implementing Classes:
MethodParameterImpl
public interface MethodParameter
This is used to describe the values to be given to
the method in the
ServiceLocator.assistedInject(Object, java.lang.reflect.Method, MethodParameter...)
method- Author:
- jwells
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of the parameter for which thegetParameterValue()result should goThe value that should be given to the method at the parameter position specified bygetParameterPosition()
-
Method Details
-
getParameterPosition
int getParameterPosition()Returns the index of the parameter for which thegetParameterValue()result should go- Returns:
- The index of the parameter in the method where the parameter value should go
-
getParameterValue
Object getParameterValue()The value that should be given to the method at the parameter position specified bygetParameterPosition()- Returns:
- The possibly null parameter value that should be passed to the method at the given index
-