Top Description Fields Constructors Methods
org.springframework.cache.jcache.interceptor

pack-priv Class CacheResolverAdapter

extends Object
implements CacheResolver
Class Inheritance
All Implemented Interfaces
org.springframework.cache.interceptor.CacheResolver
Imports
java.util.Collection, .Collections, javax.cache.annotation.CacheInvocationContext, org.springframework.cache.Cache, org.springframework.cache.interceptor.CacheOperationInvocationContext, .CacheResolver, org.springframework.cache.jcache.JCacheCache, org.springframework.util.Assert

Spring's CacheResolver implementation that delegates to a standard JSR-107 javax.cache.annotation.CacheResolver.

Used internally to invoke user-based JSR-107 cache resolvers.

Author
Stephane Nicoll
Since
4.1

Field Summary

Modifier and TypeField and Description
private final CacheResolver

Constructor Summary

AccessConstructor and Description
public
CacheResolverAdapter(CacheResolver target)

Create a new instance with the JSR-107 cache resolver to invoke.

Method Summary

Modifier and TypeMethod and Description
protected CacheResolver
getTarget()

Return the underlying javax.cache.annotation.CacheResolver that this instance is using.

public Collection<? extends Cache>
resolveCaches(CacheOperationInvocationContext<?>
the context of the particular invocation
context
)

Implements org.springframework.cache.interceptor.CacheResolver.resolveCaches.

Return the cache(s) to use for the specified invocation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

targetback to summary
private final CacheResolver target

Constructor Detail

CacheResolverAdapterback to summary
public CacheResolverAdapter(CacheResolver target)

Create a new instance with the JSR-107 cache resolver to invoke.

Method Detail

getTargetback to summary
protected CacheResolver getTarget()

Return the underlying javax.cache.annotation.CacheResolver that this instance is using.

resolveCachesback to summary
public Collection<? extends Cache> resolveCaches(CacheOperationInvocationContext<?> context)

Implements org.springframework.cache.interceptor.CacheResolver.resolveCaches.

Doc from org.springframework.cache.interceptor.CacheResolver.resolveCaches.

Return the cache(s) to use for the specified invocation.

Parameters
context:CacheOperationInvocationContext<?>

the context of the particular invocation

Returns:Collection<? extends Cache>

the cache(s) to use (never null)

Annotations
@Override