|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
org.mmbase.util.LRUHashtable
org.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 org.mmbase.util.LRUHashtable |
LRUHashtable.LRUEntry, LRUHashtable.LRUEntrySet, LRUHashtable.LRUEntrySetIterator |
| Field Summary |
| Fields inherited from class org.mmbase.cache.Cache |
maxEntrySize |
| Method Summary | |
static TemplateCache |
getCache()
Returns the Template cache. |
java.lang.String |
getDescription()
Gives a description for this cache type. |
java.lang.String |
getName()
Returns a name for this cache type. |
javax.xml.transform.Templates |
getTemplates(javax.xml.transform.Source src)
|
javax.xml.transform.Templates |
getTemplates(javax.xml.transform.Source src,
javax.xml.transform.URIResolver uri)
|
static void |
main(java.lang.String[] argv)
Invocation of the class from the commandline for testing |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
You can only put Source/Templates values in the cache, so this throws an Exception. |
java.lang.Object |
put(javax.xml.transform.Source src,
javax.xml.transform.Templates value)
|
java.lang.Object |
put(javax.xml.transform.Source src,
javax.xml.transform.Templates value,
javax.xml.transform.URIResolver uri)
|
java.lang.Object |
remove(java.lang.Object key)
When removing an entry (because of LRU e.g), then also the FileWatchter must be removed. |
| Methods inherited from class org.mmbase.cache.Cache |
get, getByteSize, getByteSize, getCache, getCaches, getDefaultMaxEntrySize, getMaxEntrySize, getTotalByteSize, isActive, putCache, putCache, setActive |
| Methods inherited from class org.mmbase.util.LRUHashtable |
clear, clone, elements, entrySet, getCount, getHits, getMisses, getOrderedElements, getOrderedElements, getOrderedEntries, getOrderedEntries, getPuts, getRatio, getSize, getStats, keySet, setSize, size, toString, toString, values |
| Methods inherited from class java.util.Hashtable |
contains, containsKey, containsValue, equals, hashCode, isEmpty, keys, putAll, rehash |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static TemplateCache getCache()
public java.lang.String getName()
Cache
getName in class Cachepublic java.lang.String getDescription()
Cache
getDescription in class Cachepublic javax.xml.transform.Templates getTemplates(javax.xml.transform.Source src)
public javax.xml.transform.Templates getTemplates(javax.xml.transform.Source src,
javax.xml.transform.URIResolver uri)
public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class LRUHashtablekey - the key of the element
null if it could not be found
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class Cachejava.lang.RuntimeException
public java.lang.Object put(javax.xml.transform.Source src,
javax.xml.transform.Templates value)
public java.lang.Object put(javax.xml.transform.Source src,
javax.xml.transform.Templates value,
javax.xml.transform.URIResolver uri)
public static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||