Top Description Methods
org.glassfish.hk2.api

public Interface MethodParameter

Known Direct Implementers
org.glassfish.hk2.utilities.MethodParameterImpl

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 TypeMethod and Description
public int

Returns:

The index of the parameter in the method where the parameter value should go
getParameterPosition
()

Returns the index of the parameter for which the getParameterValue() result should go

public Object

Returns:

The possibly null parameter value that should be passed to the method at the given index
getParameterValue
()

The value that should be given to the method at the parameter position specified by getParameterPosition()

Method Detail

getParameterPositionback to summary
public int getParameterPosition()

Returns the index of the parameter for which the getParameterValue() result should go

Returns:int

The index of the parameter in the method where the parameter value should go

getParameterValueback to summary
public Object getParameterValue()

The value that should be given to the method at the parameter position specified by getParameterPosition()

Returns:Object

The possibly null parameter value that should be passed to the method at the given index