public interface CacheResolverFactory
CacheResolver
to use for an annotated method. The CacheResolver
will be retrieved
once per annotated method.
Implementations MUST be thread-safe.Modifier and Type | Method and Description |
---|---|
CacheResolver |
getCacheResolver(CacheMethodDetails<? extends Annotation> cacheMethodDetails)
Get the
CacheResolver used at runtime for resolution of the Cache for the
CacheResult , CachePut , CacheRemoveEntry , or CacheRemoveAll
annotation. |
CacheResolver |
getExceptionCacheResolver(CacheMethodDetails<CacheResult> cacheMethodDetails)
Get the
CacheResolver used at runtime for resolution of the Cache for the
CacheResult annotation to cache exceptions. |
CacheResolver getCacheResolver(CacheMethodDetails<? extends Annotation> cacheMethodDetails)
CacheResolver
used at runtime for resolution of the Cache
for the
CacheResult
, CachePut
, CacheRemoveEntry
, or CacheRemoveAll
annotation.cacheMethodDetails
- The details of the annotated method to get the CacheResolver
for.CacheResolver
instance to be used by the intercepter.CacheResolver getExceptionCacheResolver(CacheMethodDetails<CacheResult> cacheMethodDetails)
CacheResolver
used at runtime for resolution of the Cache
for the
CacheResult
annotation to cache exceptions.
Will only be called if CacheResult.exceptionCacheName()
is not empty.cacheMethodDetails
- The details of the annotated method to get the CacheResolver
for.CacheResolver
instance to be used by the intercepter.Copyright © 2013. All Rights Reserved.