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 | Description |
---|---|---|
CacheResolver |
getCacheResolver(CacheMethodDetails<? extends Annotation> cacheMethodDetails) |
Get the
CacheResolver used at runtime for resolution of the
Cache for the CacheResult , CachePut ,
CacheRemove , 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
,
CacheRemove
, or CacheRemoveAll
annotation.cacheMethodDetails
- The details of the annotated method to get the
CacheResolver
for. @return The CacheResolver
instance to be
used by the interceptor.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 interceptor.Copyright © 2017. All rights reserved.