Interface CacheResolverFactory
public interface CacheResolverFactory
Determines the
CacheResolver to use for an annotated method. The
CacheResolver will be retrieved once per annotated method.
Implementations MUST be thread-safe.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiongetCacheResolver(CacheMethodDetails<? extends Annotation> cacheMethodDetails) Get theCacheResolverused at runtime for resolution of theCachefor theCacheResult,CachePut,CacheRemove, orCacheRemoveAllannotation.getExceptionCacheResolver(CacheMethodDetails<CacheResult> cacheMethodDetails) Get theCacheResolverused at runtime for resolution of theCachefor theCacheResultannotation to cache exceptions.
-
Method Details
-
getCacheResolver
Get theCacheResolverused at runtime for resolution of theCachefor theCacheResult,CachePut,CacheRemove, orCacheRemoveAllannotation.- Parameters:
cacheMethodDetails- The details of the annotated method to get theCacheResolverfor. @return TheCacheResolverinstance to be used by the interceptor.
-
getExceptionCacheResolver
Get theCacheResolverused at runtime for resolution of theCachefor theCacheResultannotation to cache exceptions.Will only be called if
CacheResult.exceptionCacheName()is not empty.- Parameters:
cacheMethodDetails- The details of the annotated method to get theCacheResolverfor.- Returns:
- The
CacheResolverinstance to be used by the interceptor.
-