JCacheOperationSource that caches attributes
for methods and implements a fallback policy: 1. specific target method;
2. declaring method.
This implementation caches attributes by method after they are first used.
org.springframework.cache.interceptor.AbstractFallbackCacheOperationSource
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| protected final Log | |
| private static final Object | NULL_CACHING_ATTRIBUTE
Canonical value held in cache to indicate no caching attribute was found for this method and we don't need to look again. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| private JCacheOperation | |
| protected abstract JCacheOperation | Returns: the cache operation associated with this method (ornull if none)the method to retrieve the operation for method, Class<?> the target class targetType)Subclasses need to implement this to return the caching operation for the given method, if any. |
| public JCacheOperation | getCacheOperation(Method
the method to introspect method, Class<?> the target class (may be targetClass)null, in which case
the declaring class of the method must be used)Implements org. Return the cache operations for this method, or |
| cache | back to summary |
|---|---|
| private final Map<MethodClassKey, Object> cache | |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| NULL_CACHING_ATTRIBUTE | back to summary |
|---|---|
| private static final Object NULL_CACHING_ATTRIBUTE Canonical value held in cache to indicate no caching attribute was found for this method and we don't need to look again. | |
| AbstractFallbackJCacheOperationSource | back to summary |
|---|---|
| public AbstractFallbackJCacheOperationSource() | |
| allowPublicMethodsOnly | back to summary |
|---|---|
| protected boolean allowPublicMethodsOnly() Should only public methods be allowed to have caching semantics? The default implementation returns | |
| computeCacheOperation | back to summary |
|---|---|
private JCacheOperation
| |
| findCacheOperation | back to summary |
|---|---|
| protected abstract JCacheOperation Subclasses need to implement this to return the caching operation for the given method, if any.
| |
| getCacheOperation | back to summary |
|---|---|
| public JCacheOperation Implements org. Doc from org. Return the cache operations for this method, or
| |