CacheOperationInvocationContext implementation used
by all interceptors. Also implements CacheInvocationContext to
act as a proper bridge when calling JSR-107 javax.cache.annotation.CacheResolver
| Modifier and Type | Field and Description |
|---|---|
| private final CacheInvocationParameter[] | |
| private final Object[] | |
| private final JCacheOperation | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| allParameters | back to summary |
|---|---|
| private final CacheInvocationParameter[] allParameters | |
| args | back to summary |
|---|---|
| private final Object[] args | |
| operation | back to summary |
|---|---|
| private final JCacheOperation<A> operation | |
| target | back to summary |
|---|---|
| private final Object target | |
| DefaultCacheInvocationContext | back to summary |
|---|---|
| public DefaultCacheInvocationContext(JCacheOperation<A> operation, Object target, Object[] args) | |
| getAllParameters | back to summary |
|---|---|
| public CacheInvocationParameter[] getAllParameters() Implements javax. Doc from javax. Returns a clone of the array of all method parameters.
| |
| getAnnotations | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. An immutable Set of all Annotations on this method
| |
| getArgs | back to summary |
|---|---|
| public Object[] getArgs() Implements org. Doc from org. Return the argument list used to invoke the method.
| |
| getCacheAnnotation | back to summary |
|---|---|
| public A getCacheAnnotation() Implements javax. Doc from javax. The caching related annotation on the method.
One of:
| |
| getCacheName | back to summary |
|---|---|
| public String getCacheName() Implements javax. Doc from javax. The cache name resolved by the implementation.
The cache name is determined by first looking at the cacheName attribute of
the method level annotation. If that attribute is not set then the class
level "fully qualified class name"."method name"("fully qualified parameter class names") For example:
Results in the cache name: "my.app.DomainDao.getDomain(java.lang.String,int)" | |
| getMethod | back to summary |
|---|---|
| public Method getMethod() Implements javax. Doc from org. Return the method which was invoked.
| |
| getOperation | back to summary |
|---|---|
| public JCacheOperation Implements org. Doc from org. Return the cache operation.
| |
| getTarget | back to summary |
|---|---|
| public Object getTarget() Implements javax. Doc from org. Return the target instance on which the method was invoked.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> cls) Implements javax. Doc from javax. Return an object of the specified type to allow access to the
provider-specific API. If the provider's
implementation does not support the specified class, the
| |