A - The type of annotation this context information is for. One of
CacheResult,
CachePut, CacheRemoveEntry, or
CacheRemoveAll.public interface CacheInvocationContext<A extends Annotation> extends CacheMethodDetails<A>
CacheResult, CachePut, CacheRemoveEntry,
or CacheRemoveAll
Used with CacheResolver.resolveCache(CacheInvocationContext) to
determine the Cache to use at runtime for the method
invocation.CacheResolver| Modifier and Type | Method and Description |
|---|---|
CacheInvocationParameter[] |
getAllParameters()
Returns a clone of the array of all method parameters.
|
Object |
getTarget() |
<T> T |
unwrap(Class<T> cls)
Return an object of the specified type to allow access to the
provider-specific API.
|
getAnnotations, getCacheAnnotation, getCacheName, getMethodObject 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.Copyright © 2013. All Rights Reserved.