Top Description Methods
javax.cache.annotation

public Interface CacheResolverFactory

Imports
javax.cache.Cache, java.lang.annotation.Annotation

Determines the CacheResolver to use for an annotated method. The CacheResolver will be retrieved once per annotated method.

Implementations MUST be thread-safe.

Author
Eric Dalquist
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public CacheResolver
getCacheResolver(CacheMethodDetails<? extends Annotation>
The details of the annotated method to get the CacheResolver for. @return The CacheResolver instance to be used by the interceptor.
cacheMethodDetails
)

Get the CacheResolver used at runtime for resolution of the Cache for the CacheResult, CachePut, CacheRemove, or CacheRemoveAll annotation.

public CacheResolver

Returns:

The CacheResolver instance to be used by the interceptor.
getExceptionCacheResolver
(CacheMethodDetails<CacheResult>
The details of the annotated method to get the CacheResolver for.
cacheMethodDetails
)

Get the CacheResolver used at runtime for resolution of the Cache for the CacheResult annotation to cache exceptions.

Method Detail

getCacheResolverback to summary
public 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.

Parameters
cacheMethodDetails:CacheMethodDetails<? extends Annotation>

The details of the annotated method to get the CacheResolver for. @return The CacheResolver instance to be used by the interceptor.

getExceptionCacheResolverback to summary
public CacheResolver getExceptionCacheResolver(CacheMethodDetails<CacheResult> cacheMethodDetails)

Get the 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.

Parameters
cacheMethodDetails:CacheMethodDetails<CacheResult>

The details of the annotated method to get the CacheResolver for.

Returns:CacheResolver

The CacheResolver instance to be used by the interceptor.