|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.cache.Cache
org.mmbase.cache.xslt.TemplateCache
A cache for XSL transformation templates. A template can be based on a file, or on a string. In the first case the cache key is based on the file name, and the cache entry is invalidated if the file changes (so, if you uses 'imports' in the XSL template, you have to touch the file which imports, if the imported files changes). If the template is based on a string, then the string itself serves as a key.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Field Summary |
| Fields inherited from class org.mmbase.cache.Cache |
maxEntrySize |
| Method Summary | |
static TemplateCache |
getCache()
Returns the Template cache. |
String |
getDescription()
Gives a description for this cache type. |
String |
getName()
Returns a name for this cache type. |
Templates |
getTemplates(Source src)
|
Templates |
getTemplates(Source src,
URIResolver uri)
|
static void |
main(String[] argv)
Invocation of the class from the commandline for testing |
Object |
put(Object key,
Object value)
You can only put Source/Templates values in the cache, so this throws an Exception. |
Object |
put(Source src,
Templates value)
|
Object |
put(Source src,
Templates value,
URIResolver uri)
|
Object |
remove(Object key)
When removing an entry (because of LRU e.g), then also the FileWatcher must be removed. |
| Methods inherited from class org.mmbase.cache.Cache |
checkCachePolicy, clear, contains, containsKey, containsValue, entrySet, equals, get, getByteSize, getByteSize, getCache, getCaches, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getMaxEntrySize, getMisses, getPuts, getRatio, getStats, getTotalByteSize, hashCode, isActive, isEmpty, keySet, maxSize, putAll, putCache, putCache, setActive, setMaxSize, size, toString, values |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static TemplateCache getCache()
public String getName()
Cache
getName in class Cachepublic String getDescription()
Cache
getDescription in class Cachepublic Templates getTemplates(Source src)
public Templates getTemplates(Source src,
URIResolver uri)
public Object remove(Object key)
remove in interface Mapremove in class CacheMap.remove(java.lang.Object)
public Object put(Object key,
Object value)
put in interface Mapput in class CacheRuntimeException
public Object put(Source src,
Templates value)
public Object put(Source src,
Templates value,
URIResolver uri)
public static void main(String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||