class CacheResolverAdapter extends java.lang.Object implements CacheResolver
CacheResolver implementation that delegates to a standard
JSR-107 javax.cache.annotation.CacheResolver.
Used internally to invoke user-based JSR-107 cache resolvers.
| Modifier and Type | Field and Description |
|---|---|
private javax.cache.annotation.CacheResolver |
target |
| Constructor and Description |
|---|
CacheResolverAdapter(javax.cache.annotation.CacheResolver target)
Create a new instance with the JSR-107 cache resolver to invoke.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.cache.annotation.CacheResolver |
getTarget()
Return the underlying
javax.cache.annotation.CacheResolver that this
instance is using. |
java.util.Collection<? extends Cache> |
resolveCaches(CacheOperationInvocationContext<?> context)
Return the cache(s) to use for the specified invocation.
|
public CacheResolverAdapter(javax.cache.annotation.CacheResolver target)
protected javax.cache.annotation.CacheResolver getTarget()
javax.cache.annotation.CacheResolver that this
instance is using.public java.util.Collection<? extends Cache> resolveCaches(CacheOperationInvocationContext<?> context)
CacheResolverresolveCaches in interface CacheResolvercontext - the context of the particular invocationnull)