I - The intercepted method invocationA - The type of annotation this context information is for. One of CacheResult,
CachePut, CacheRemove, or
CacheRemoveAll.public abstract class AbstractInternalCacheKeyInvocationContext<I,A extends Annotation> extends AbstractInternalCacheInvocationContext<I,A> implements InternalCacheKeyInvocationContext<A>
NOTE: This class uses arrays instead of immutable collections due to the frequency of these objects being created. In testing creating new arrays and cloning them requires less CPU time and fewer objects than creating new immutable Lists.
| Constructor and Description |
|---|
AbstractInternalCacheKeyInvocationContext(StaticCacheKeyInvocationContext<A> staticCacheKeyInvocationContext,
I invocation)
Create a AbstractInternalCacheInvocationContext
|
| Modifier and Type | Method and Description |
|---|---|
javax.cache.annotation.CacheInvocationParameter[] |
getKeyParameters() |
protected Method |
getMethod(I invocation) |
protected Object[] |
getParameters(I invocation) |
StaticCacheKeyInvocationContext<A> |
getStaticCacheKeyInvocationContext() |
protected Object |
getTarget(I invocation) |
javax.cache.annotation.CacheInvocationParameter |
getValueParameter() |
getAllParameters, getAnnotations, getCacheAnnotation, getCacheName, getMethod, getStaticCacheInvocationContext, getTarget, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic AbstractInternalCacheKeyInvocationContext(StaticCacheKeyInvocationContext<A> staticCacheKeyInvocationContext, I invocation)
staticCacheKeyInvocationContext - The pre-processed method details datainvocation - The current invocation contextpublic StaticCacheKeyInvocationContext<A> getStaticCacheKeyInvocationContext()
getStaticCacheKeyInvocationContext in interface InternalCacheKeyInvocationContext<A extends Annotation>protected Object[] getParameters(I invocation)
getParameters in class AbstractInternalCacheInvocationContext<I,A extends Annotation>invocation - The intercepted method invocationprotected Method getMethod(I invocation)
getMethod in class AbstractInternalCacheInvocationContext<I,A extends Annotation>invocation - The intercepted method invocationprotected Object getTarget(I invocation)
getTarget in class AbstractInternalCacheInvocationContext<I,A extends Annotation>invocation - The intercepted method invocationpublic javax.cache.annotation.CacheInvocationParameter[] getKeyParameters()
getKeyParameters in interface javax.cache.annotation.CacheKeyInvocationContext<A extends Annotation>public javax.cache.annotation.CacheInvocationParameter getValueParameter()
getValueParameter in interface javax.cache.annotation.CacheKeyInvocationContext<A extends Annotation>Copyright © 2019. All rights reserved.