org.mmbase.applications.vprowizards.spring.cache
Class BasicCacheHandlerInterceptor
java.lang.Object
org.mmbase.applications.vprowizards.spring.cache.CacheHandlerInterceptor
org.mmbase.applications.vprowizards.spring.cache.BasicCacheHandlerInterceptor
- All Implemented Interfaces:
- org.springframework.web.servlet.HandlerInterceptor
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 a Handling instance for each type of cache flush hint.
- It uses a class instance factory of type CacheNameResolver to 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 of Modifiers can be registered to post process the resolved cache names. They are
applied in the order they are registered.
- A CacheWrapper is used to handle the actual cache flushing
- Author:
- ebunders
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicCacheHandlerInterceptor
BasicCacheHandlerInterceptor()
setCacheWrapper
public void setCacheWrapper(CacheWrapper cacheWrapper)
getCacheWrapper
public CacheWrapper getCacheWrapper()
addModifier
public void addModifier(Modifier modifier)
setModifiers
public void setModifiers(List<Modifier> modifiers)
getCacheNameResolverFactory
public ClassInstanceFactory<CacheNameResolver> getCacheNameResolverFactory()
setCacheNameResolverFactory
public void setCacheNameResolverFactory(ClassInstanceFactory<CacheNameResolver> classInstanceFactory)
MMBase 2.0-SNAPSHOT - null