|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface CachingDefaults
Allows the configuration of cacheName, cacheResolver and cacheKeyResolver at the class level. The same settings at the method level will override this. This allows you to have defaults at the class level.
| Optional Element Summary | |
|---|---|
Class<? extends CacheKeyGenerator> |
cacheKeyGenerator
(Optional) The CacheKeyGenerator to use to generate the cache key used to call Cache.get(Object)
Cache.put(Object, Object)
Defaults to CacheKeyGenerator |
String |
cacheName
(Optional) name of the cache. |
Class<? extends CacheResolver> |
cacheResolver
(Optional) The CacheResolver to use to find the Cache the intercepter will interact with. |
public abstract String cacheName
public abstract Class<? extends CacheResolver> cacheResolver
CacheResolver to use to find the Cache the intercepter will interact with.
Defaults to resolving the cache by name from the default CacheManager
public abstract Class<? extends CacheKeyGenerator> cacheKeyGenerator
CacheKeyGenerator to use to generate the cache key used to call Cache.get(Object)
Cache.put(Object, Object)
Defaults to CacheKeyGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||