|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.vprowizards.spring.cache.BasicOSCacheNameResolver
public class BasicOSCacheNameResolver
This basic flushname resolver uses the FlushNameTemplateBean to clear the templates
out of the flushnames. So what are templates:
in order to create flushname values dynamically there is a simpel template system in place.
Templates have this format:
"somecachename, type[page], something[page]"
The listresult tag checks for the values between square brackets, and then appends the nodenumber
of the current row's node type matches it. The result is:
"somecachename, type[page:120], something[page:120]"
This template string is not simply replaced by the nodenumber becouse when you go back to the list using the
path, this flushname will be in the session (the original flushname was probably given as a parameter from the editors menu)
, so by appending the nodenumber the template can be reused.
When the flushname is finally used to flush the caches, the template is cleared from the flushname string.
| Constructor Summary | |
|---|---|
BasicOSCacheNameResolver()
|
|
| Method Summary | |
|---|---|
String |
resolveCacheGroupName(String flushname,
HttpServletRequest request)
create a full cache group name based on a given identifier. |
String |
resolveCacheKeyName(String flushname,
HttpServletRequest request)
create a full cache key name based on a given identifier. |
(package private) static String |
stripTemplates(String flushname)
this method strips the templates away from the flushnames and just leaves the nodenumbers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicOSCacheNameResolver()
| Method Detail |
|---|
static String stripTemplates(String flushname)
throws Exception
flushname -
Exception - when there is a problem with parsing the template
public String resolveCacheGroupName(String flushname,
HttpServletRequest request)
OSCacheNameResolver
resolveCacheGroupName in interface OSCacheNameResolver
public String resolveCacheKeyName(String flushname,
HttpServletRequest request)
OSCacheNameResolver
resolveCacheKeyName in interface OSCacheNameResolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||