|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.spec.BaseLocatable org.apache.tapestry.AbstractComponent net.sf.tapfx.components.cache.Cache
A Tapestry component that caches web content.
Surround the html content that should be cached with this component,
and specify the cache name and (an optional) cache key.
Ehcache is used to implement the caching, and so
eache cache's properties are configured in the ehcache.xml file.
This class also contains static utility methods for interacting
with a cache from code, such as: get, put, remove, clear.
Constructor Summary | |
Cache()
|
Method Summary | |
static void |
clear(java.lang.String cacheName)
|
static java.lang.Object |
get(java.lang.String cacheName,
java.lang.Object key)
|
abstract java.lang.Object |
getKey()
|
abstract java.lang.String |
getName()
|
static void |
put(java.lang.String cacheName,
java.lang.Object key,
java.lang.Object value)
|
static void |
remove(java.lang.String cacheName,
java.lang.Object key)
|
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString |
Methods inherited from class org.apache.tapestry.spec.BaseLocatable |
getLocation, setLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.ILocationHolder |
setLocation |
Methods inherited from interface org.apache.tapestry.ILocatable |
getLocation |
Constructor Detail |
public Cache()
Method Detail |
public abstract java.lang.String getName()
public abstract java.lang.Object getKey()
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
public static java.lang.Object get(java.lang.String cacheName, java.lang.Object key)
public static void put(java.lang.String cacheName, java.lang.Object key, java.lang.Object value)
public static void remove(java.lang.String cacheName, java.lang.Object key)
public static void clear(java.lang.String cacheName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |