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

java.lang.Object
  extended by org.mmbase.applications.vprowizards.spring.cache.TokenizerCacheNameResolver
All Implemented Interfaces:
CacheNameResolver

public class TokenizerCacheNameResolver
extends Object
implements CacheNameResolver

 
 This class has a no-arg constructor so you can use it as a bean.
 It is reusable, but not thread safe.
 To see what kind of formats it can tokenize: TokenizerCacheNameResolverTest.
 The purpose of this class is to tokenize a cashflush command, where values can be grouped
 in names paces. Each name space could relate to a kind of cache flush hint CacheFlushHint.
 There is also support for templates. See: FlushNameTemplateBean
 

Author:
ebunders

Constructor Summary
TokenizerCacheNameResolver()
           
 
Method Summary
 List<String> getNames()
          Obtain the cache names for the given namespace or those without a namespace (global)
 List<String> getNames(String nameSpace)
          Obtain the cache names for the given namespace or those without a namespace (global)
 void setInput(String input)
          set the input string to be tokenized, using the registered tokens.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenizerCacheNameResolver

public TokenizerCacheNameResolver()
Method Detail

getNames

public List<String> getNames(String nameSpace)
Description copied from interface: CacheNameResolver
Obtain the cache names for the given namespace or those without a namespace (global)

Specified by:
getNames in interface CacheNameResolver
Parameters:
nameSpace - this can be some implementation-specific qualifier or null if the implementation does not need it.
Returns:
a list of specific cache keys

setInput

public void setInput(String input)
Description copied from interface: CacheNameResolver
set the input string to be tokenized, using the registered tokens.

Specified by:
setInput in interface CacheNameResolver
Parameters:
input - the formatted flushname string

toString

public String toString()
Overrides:
toString in class Object

getNames

public List<String> getNames()
Description copied from interface: CacheNameResolver
Obtain the cache names for the given namespace or those without a namespace (global)

Specified by:
getNames in interface CacheNameResolver
Returns:
a list of specific cache keys


MMBase 2.0-SNAPSHOT - null