javax.cache.annotation.CacheResolverFactorypublic class DefaultCacheResolverFactory extends Object implements javax.cache.annotation.CacheResolverFactory
CacheResolverFactory that uses the default CacheManager and finds the Cache
using CacheManager.getCache(String). Returns a DefaultCacheResolver that wraps the found
Cache| Constructor | Description |
|---|---|
DefaultCacheResolverFactory() |
Constructs the resolver
|
DefaultCacheResolverFactory(javax.cache.CacheManager cacheManager) |
Constructs the resolver
|
| Modifier and Type | Method | Description |
|---|---|---|
javax.cache.annotation.CacheResolver |
getCacheResolver(javax.cache.annotation.CacheMethodDetails<? extends Annotation> cacheMethodDetails) |
|
javax.cache.annotation.CacheResolver |
getExceptionCacheResolver(javax.cache.annotation.CacheMethodDetails<javax.cache.annotation.CacheResult> cacheMethodDetails) |
public DefaultCacheResolverFactory(javax.cache.CacheManager cacheManager)
cacheManager - the cache manager to usepublic DefaultCacheResolverFactory()
public javax.cache.annotation.CacheResolver getCacheResolver(javax.cache.annotation.CacheMethodDetails<? extends Annotation> cacheMethodDetails)
getCacheResolver in interface javax.cache.annotation.CacheResolverFactorypublic javax.cache.annotation.CacheResolver getExceptionCacheResolver(javax.cache.annotation.CacheMethodDetails<javax.cache.annotation.CacheResult> cacheMethodDetails)
getExceptionCacheResolver in interface javax.cache.annotation.CacheResolverFactoryCopyright © 2017. All rights reserved.