Package javax.cache.annotation
Interface CacheResolverFactory
-
public interface CacheResolverFactoryDetermines theCacheResolverto use for an annotated method. TheCacheResolverwill be retrieved once per annotated method.Implementations MUST be thread-safe.
- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheResolvergetCacheResolver(CacheMethodDetails<? extends java.lang.annotation.Annotation> cacheMethodDetails)Get theCacheResolverused at runtime for resolution of theCachefor theCacheResult,CachePut,CacheRemove, orCacheRemoveAllannotation.CacheResolvergetExceptionCacheResolver(CacheMethodDetails<CacheResult> cacheMethodDetails)Get theCacheResolverused at runtime for resolution of theCachefor theCacheResultannotation to cache exceptions.
-
-
-
Method Detail
-
getCacheResolver
CacheResolver getCacheResolver(CacheMethodDetails<? extends java.lang.annotation.Annotation> cacheMethodDetails)
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
CacheResolver getExceptionCacheResolver(CacheMethodDetails<CacheResult> cacheMethodDetails)
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.
-
-