Package org.glassfish.hk2.api
Interface MethodParameter
-
- All Known Implementing Classes:
MethodParameterImpl
public interface MethodParameter
This is used to describe the values to be given to the method in theServiceLocator.assistedInject(Object, java.lang.reflect.Method, MethodParameter...)
method- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getParameterPosition()
Returns the index of the parameter for which thegetParameterValue()
result should goObject
getParameterValue()
The value that should be given to the method at the parameter position specified bygetParameterPosition()
-
-
-
Method Detail
-
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
-
-