|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.cache.Cache<String,String>
org.mmbase.cache.xslt.ResultCache
public class ResultCache
Caches the results of XSL transformations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.mmbase.cache.Cache |
|---|
lock, 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. |
String |
put(Object key,
Templates 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, getAvarageValueLength, getByteSize, getByteSize, getCheapByteSize, getCount, getHits, getImplementation, getLock, getMaxEntrySize, getMaxSize, getMisses, getPuts, getRatio, getSize, getStats, hashCode, isActive, isEmpty, keySet, maxSize, put, putAll, putCache, remove, reset, setActive, setMaxEntrySize, 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 Cache<String,String>public static ResultCache getCache()
public String getName()
Cache
getName in interface CacheMBeangetName in class Cache<String,String>public String getDescription()
Cache
getDescription in interface CacheMBeangetDescription in class Cache<String,String>
public String put(Object key,
Templates value)
RuntimeException
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 | |||||||||