Package | Description |
---|---|
org.springframework.cache.annotation |
Annotations and supporting classes for declarative cache management.
|
org.springframework.cache.interceptor |
AOP-based solution for declarative caching demarcation.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<CacheOperation> |
AnnotationCacheOperationSource.determineCacheOperations(java.lang.reflect.AnnotatedElement ae)
Determine the cache operation(s) for the given method or class.
|
protected java.util.Collection<CacheOperation> |
AnnotationCacheOperationSource.findCacheOperations(java.lang.Class<?> clazz) |
protected java.util.Collection<CacheOperation> |
AnnotationCacheOperationSource.findCacheOperations(java.lang.reflect.Method method) |
java.util.Collection<CacheOperation> |
SpringCacheAnnotationParser.parseCacheAnnotations(java.lang.reflect.AnnotatedElement ae) |
java.util.Collection<CacheOperation> |
CacheAnnotationParser.parseCacheAnnotations(java.lang.reflect.AnnotatedElement ae)
Parses the cache definition for the given method or class,
based on a known annotation type.
|
Modifier and Type | Class and Description |
---|---|
class |
CacheableOperation
Class describing a cache 'cacheable' operation.
|
class |
CacheEvictOperation
Class describing a cache 'evict' operation.
|
class |
CachePutOperation
Class describing a cache 'put' operation.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Collection<CacheOperation> |
AbstractFallbackCacheOperationSource.findCacheOperations(java.lang.Class<?> clazz)
Subclasses need to implement this to return the caching attribute
for the given class, if any.
|
protected abstract java.util.Collection<CacheOperation> |
AbstractFallbackCacheOperationSource.findCacheOperations(java.lang.reflect.Method method)
Subclasses need to implement this to return the caching attribute
for the given method, if any.
|
java.util.Collection<CacheOperation> |
NameMatchCacheOperationSource.getCacheOperations(java.lang.reflect.Method method,
java.lang.Class<?> targetClass) |
java.util.Collection<CacheOperation> |
AbstractFallbackCacheOperationSource.getCacheOperations(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Determine the caching attribute for this method invocation.
|
java.util.Collection<CacheOperation> |
CacheOperationSource.getCacheOperations(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Return the collection of cache operations for this method, or
null
if the method contains no cacheable annotations. |
java.util.Collection<CacheOperation> |
CompositeCacheOperationSource.getCacheOperations(java.lang.reflect.Method method,
java.lang.Class<?> targetClass) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<Cache> |
CacheAspectSupport.getCaches(CacheOperation operation) |
protected CacheAspectSupport.CacheOperationContext |
CacheAspectSupport.getOperationContext(CacheOperation operation,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object target,
java.lang.Class<?> targetClass) |
Modifier and Type | Method and Description |
---|---|
void |
NameMatchCacheOperationSource.addCacheMethod(java.lang.String methodName,
java.util.Collection<CacheOperation> ops)
Add an attribute for a cacheable method.
|
void |
NameMatchCacheOperationSource.setNameMap(java.util.Map<java.lang.String,java.util.Collection<CacheOperation>> nameMap)
Set a name/attribute map, consisting of method names
(e.g.
|
Constructor and Description |
---|
CacheOperationContext(CacheOperation operation,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object target,
java.lang.Class<?> targetClass) |
Copyright © 2021. All rights reserved.