|
||||||||||
| 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.ResultCache
Caches the results of XSL transformations.
| 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 | |
String |
get(Templates temp,
Source xsl,
Map params,
Properties props,
Document src)
This is an intelligent get, which also does the put if it cannot find the requested result. |
static ResultCache |
getCache()
Returns the XSLT Result cache. |
protected int |
getDefaultMaxEntrySize()
This has to be overridden by Caches which support max entry size. |
String |
getDescription()
Gives a description for this cache type. |
String |
getName()
Returns a name for this cache type. |
Object |
put(Object key,
Object value)
You can only put Source/Templates values in the cache, so this throws an Exception. |
| Methods inherited from class org.mmbase.cache.Cache |
checkCachePolicy, clear, contains, containsKey, containsValue, entrySet, equals, get, getByteSize, getByteSize, getCache, getCaches, getCheapByteSize, getCount, getHits, getMaxEntrySize, getMisses, getPuts, getRatio, getStats, getTotalByteSize, hashCode, isActive, isEmpty, keySet, main, maxSize, putAll, putCache, putCache, remove, setActive, setMaxSize, size, toString, values |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
protected int getDefaultMaxEntrySize()
Cache
getDefaultMaxEntrySize in class Cachepublic static ResultCache getCache()
public String getName()
Cache
getName in class Cachepublic String getDescription()
Cache
getDescription in class Cache
public Object put(Object key,
Object value)
put in interface Mapput in class CacheRuntimeException
public String get(Templates temp,
Source xsl,
Map params,
Properties props,
Document src)
temp - The Templates from which the transformer must be created (if necessary)xsl - The XSL Source. This only used to produce the key, because with the Templates it
is difficultparams - Parameters for the XSL Transformationsrc - The Document which must be transformed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||