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 hintCacheFlushHint. There is also support for templates. See:FlushNameTemplateBean
| Constructor and Description |
|---|
TokenizerCacheNameResolver() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public List<String> getNames(String nameSpace)
CacheNameResolvergetNames in interface CacheNameResolvernameSpace - this can be some implementation-specific qualifier or null if the implementation
does not need it.public void setInput(String input)
CacheNameResolversetInput in interface CacheNameResolverinput - the formatted flushname stringpublic List<String> getNames()
CacheNameResolvergetNames in interface CacheNameResolverMMBase 1.9-SNAPSHOT - ${javadoctimestamp}