org.mmbase.applications.vprowizards.spring.cache
Class BasicCacheHandlerInterceptor

java.lang.Object
  extended by org.mmbase.applications.vprowizards.spring.cache.CacheHandlerInterceptor
      extended by 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

Field Summary
 
Fields inherited from class org.mmbase.applications.vprowizards.spring.cache.CacheHandlerInterceptor
handlings, PARAM_NAME
 
Constructor Summary
BasicCacheHandlerInterceptor()
           
 
Method Summary
 void addModifier(Modifier modifier)
           
 ClassInstanceFactory<CacheNameResolver> getCacheNameResolverFactory()
           
 CacheWrapper getCacheWrapper()
           
 void setCacheNameResolverFactory(ClassInstanceFactory<CacheNameResolver> classInstanceFactory)
           
 void setCacheWrapper(CacheWrapper cacheWrapper)
           
 void setModifiers(List<Modifier> modifiers)
           
 
Methods inherited from class org.mmbase.applications.vprowizards.spring.cache.CacheHandlerInterceptor
addHandling, afterCompletion, postHandle, preHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCacheHandlerInterceptor

BasicCacheHandlerInterceptor()
Method Detail

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