|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A
- The type of annotation this context information is for. One of CacheResult
,
CachePut
, CacheRemoveEntry
, or
CacheRemoveAll
.public interface CacheInvocationContext<A extends Annotation>
Runtime information about an intercepted method invocation for a method annotated
with CacheResult
, CachePut
, CacheRemoveEntry
, or CacheRemoveAll
CacheResolver.resolveCache(CacheInvocationContext)
to determine the Cache
to use
at runtime for the method invocation.
CacheResolver
Method Summary | ||
---|---|---|
CacheInvocationParameter[] |
getAllParameters()
Returns a clone of the array of all method parameters. |
|
Object |
getTarget()
|
|
|
unwrap(Class<T> cls)
Return an object of the specified type to allow access to the provider-specific API. |
Methods inherited from interface javax.cache.annotation.CacheMethodDetails |
---|
getAnnotations, getCacheAnnotation, getCacheName, getMethod |
Method Detail |
---|
Object getTarget()
CacheInvocationParameter[] getAllParameters()
<T> T unwrap(Class<T> cls)
IllegalArgumentException
is thrown.
cls
- he class of the object to be returned. This is normally either the underlying implementation class or an interface that it implements.
IllegalArgumentException
- if the provider doesn't support the specified class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |