JCacheOperation implementation.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | AbstractJCacheOperation.
A single cache invocation parameter. |
| protected static class | AbstractJCacheOperation.
Details for a single cache parameter. |
| Modifier and Type | Field and Description |
|---|---|
| protected final List | |
| private final CacheResolver | |
| private final CacheMethodDetails |
| Access | Constructor and Description |
|---|---|
| protected | AbstractJCacheOperation(CacheMethodDetails<A>
the methodDetails, CacheResolver CacheMethodDetails related to the cached methodthe cache resolver to resolve regular caches cacheResolver)Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| protected ExceptionTypeFilter | createExceptionTypeFilter(Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes)
Convenience method for subclasses to create a specific |
| public CacheInvocationParameter[] | getAllParameters(Object...
the parameters value for a particular invocation values)Implements org. Return the |
| public Set | getAnnotations()
Implements javax. An immutable Set of all Annotations on this method |
| public A | getCacheAnnotation()
Implements javax. The caching related annotation on the method. |
| public String | getCacheName()
Implements javax. The cache name resolved by the implementation. |
| public Set | getCacheNames()
Implements org. Return the cache name(s) associated with the operation. |
| public CacheResolver | getCacheResolver()
Implements org. Return the |
| public abstract ExceptionTypeFilter | getExceptionTypeFilter()
Return the |
| public Method | |
| protected StringBuilder | |
| private static List | |
| public String |
| allParameterDetails | back to summary |
|---|---|
| protected final List<AbstractJCacheOperation. | |
| cacheResolver | back to summary |
|---|---|
| private final CacheResolver cacheResolver | |
| methodDetails | back to summary |
|---|---|
| private final CacheMethodDetails<A> methodDetails | |
| AbstractJCacheOperation | back to summary |
|---|---|
| protected AbstractJCacheOperation(CacheMethodDetails<A> methodDetails, CacheResolver cacheResolver) Construct a new
| |
| createExceptionTypeFilter | back to summary |
|---|---|
| protected ExceptionTypeFilter createExceptionTypeFilter(Class<? extends Throwable>[] includes, Class<? extends Throwable>[] excludes) Convenience method for subclasses to create a specific
| |
| getAllParameters | back to summary |
|---|---|
| public CacheInvocationParameter[] getAllParameters(Object... values) Implements org. Doc from org. Return the The method arguments must match the signature of the related method invocation | |
| getAnnotations | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. An immutable Set of all Annotations on this 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)" | |
| getCacheNames | back to summary |
|---|---|
| public Set Implements org. Doc from org. Return the cache name(s) associated with the operation.
| |
| getCacheResolver | back to summary |
|---|---|
| public CacheResolver getCacheResolver() Implements org. Doc from org. Return the
| |
| getExceptionTypeFilter | back to summary |
|---|---|
| public abstract ExceptionTypeFilter getExceptionTypeFilter() Return the
| |
| getMethod | back to summary |
|---|---|
| public Method getMethod() Implements javax. Doc from javax. The annotated method | |
| getOperationDescription | back to summary |
|---|---|
| protected StringBuilder getOperationDescription() Return an identifying description for this caching operation. Available to subclasses, for inclusion in their | |
| initializeAllParameterDetails | back to summary |
|---|---|
| private static List | |
| 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- | |
| Modifier and Type | Field and Description |
|---|---|
| private final AbstractJCacheOperation. | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public int | getParameterPosition()
Implements javax. The index of the parameter in the original parameter array as returned by
|
| public Class | getRawType()
Implements javax. The parameter type as declared on the method. |
| public Object |
| detail | back to summary |
|---|---|
| private final AbstractJCacheOperation. | |
| value | back to summary |
|---|---|
| private final Object value | |
| CacheInvocationParameterImpl | back to summary |
|---|---|
| public CacheInvocationParameterImpl(AbstractJCacheOperation. | |
| getAnnotations | back to summary |
|---|---|
| public Set Implements javax.
| |
| getParameterPosition | back to summary |
|---|---|
| public int getParameterPosition() Implements javax. Doc from javax. The index of the parameter in the original parameter array as returned by
| |
| getRawType | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. The parameter type as declared on the method.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Implements javax.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final boolean | |
| private final boolean | |
| private final int | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| protected boolean | |
| protected boolean | |
| public CacheInvocationParameter |
| annotations | back to summary |
|---|---|
| private final Set<Annotation> annotations | |
| isKey | back to summary |
|---|---|
| private final boolean isKey | |
| isValue | back to summary |
|---|---|
| private final boolean isValue | |
| parameterPosition | back to summary |
|---|---|
| private final int parameterPosition | |
| rawType | back to summary |
|---|---|
| private final Class<?> rawType | |
| CacheParameterDetail | back to summary |
|---|---|
| public CacheParameterDetail(Method method, int parameterPosition) | |
| getParameterPosition | back to summary |
|---|---|
| public int getParameterPosition() | |
| isKey | back to summary |
|---|---|
| protected boolean isKey() | |
| isValue | back to summary |
|---|---|
| protected boolean isValue() | |
| toCacheInvocationParameter | back to summary |
|---|---|
| public CacheInvocationParameter toCacheInvocationParameter(Object value) | |