javax.cache.annotation
Interface CacheInvocationParameter


public interface CacheInvocationParameter

A parameter to an intercepted method invocation. Contains the parameter value as well static as type and annotation information about the parameter.

Version:
$Revision$
Author:
Eric Dalquist

Method Summary
 Set<Annotation> getAnnotations()
           
 Type getBaseType()
          The Class.getGenericSuperclass() value of the parameter type declared on the method.
 int getParameterPosition()
          The index of the parameter in the original parameter array as returned by CacheInvocationContext.getAllParameters()
 Class<?> getRawType()
          The parameter type as declared on the method.
 Object getValue()
           
 

Method Detail

getBaseType

Type getBaseType()
The Class.getGenericSuperclass() value of the parameter type declared on the method.


getRawType

Class<?> getRawType()
The parameter type as declared on the method.


getValue

Object getValue()
Returns:
The parameter value

getAnnotations

Set<Annotation> getAnnotations()
Returns:
An immutable Set of all Annotations on this method parameter, never null.

getParameterPosition

int getParameterPosition()
The index of the parameter in the original parameter array as returned by CacheInvocationContext.getAllParameters()

Returns:
The index of the parameter in the original parameter array.


Copyright © 2011. All Rights Reserved.