org.mmbase.applications.vprowizards.spring.cache
Interface CacheNameResolver

All Known Implementing Classes:
TokenizerCacheNameResolver

public interface CacheNameResolver

This interface expresses the concept that the name(s) of cache keys that need to be flushed can be coded and need to be processed before the cache(s) can be flushed. You can think about a http request parameter containing any number of cache keys that need to be split up in a specific way. At least on of the getNames() menthods need to be implemented. If one is not implemented it should throw a UnsupportedOperationException

Author:
ebunders

Method Summary
 List<String> getNames()
          Obtain the cache names for the given namespace or those without a namespace (global)
 List<String> getNames(String qualifier)
          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.
 

Method Detail

getNames

List<String> getNames(String qualifier)
Obtain the cache names for the given namespace or those without a namespace (global)

Parameters:
qualifier - this can be some implementation-specific qualifier or null if the implementation does not need it.
Returns:
a list of specific cache keys

getNames

List<String> getNames()
Obtain the cache names for the given namespace or those without a namespace (global)

Returns:
a list of specific cache keys

setInput

void setInput(String input)
set the input string to be tokenized, using the registered tokens.

Parameters:
input - the formatted flushname string


MMBase 2.0-SNAPSHOT - null