public class BasicCacheHandlerInterceptor extends CacheHandlerInterceptor
This is a cache handler intercepter that implements support for all types of cache flush hints. It works as following: - It creates aHandlinginstance for each type of cache flush hint. - It uses a class instance factory of typeCacheNameResolverto generate a resolver instance. The resolver is used to transform the value of the 'flush name' parameter into a list of flush names for a specific type of cache flush hint. - Any number ofModifiers can be registered to post process the resolved cache names. They are applied in the order they are registered. - ACacheWrapperis used to handle the actual cache flushing
handlings, PARAM_NAME| Constructor and Description |
|---|
BasicCacheHandlerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addModifier(Modifier modifier) |
ClassInstanceFactory<CacheNameResolver> |
getCacheNameResolverFactory() |
CacheWrapper |
getCacheWrapper() |
void |
setCacheNameResolverFactory(ClassInstanceFactory<CacheNameResolver> classInstanceFactory) |
void |
setCacheWrapper(CacheWrapper cacheWrapper) |
void |
setModifiers(List<Modifier> modifiers) |
addHandling, afterCompletion, postHandle, preHandlepublic void setCacheWrapper(CacheWrapper cacheWrapper)
public CacheWrapper getCacheWrapper()
public void addModifier(Modifier modifier)
public ClassInstanceFactory<CacheNameResolver> getCacheNameResolverFactory()
public void setCacheNameResolverFactory(ClassInstanceFactory<CacheNameResolver> classInstanceFactory)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}