| org.apache.cocoon.generation.JXTemplateGenerator org.apache.cocoon.samples.EventAwareGenerator
EventAwareGenerator | public class EventAwareGenerator extends JXTemplateGenerator (Code) | | This is a sample generator to demonstrate the event aware caching.
We simply extend the JXTG.
version: $Id: EventAwareGenerator.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | generate() | public Serializable | getKey() Generate the unique key for the cache. | public SourceValidity | getValidity() Generate the validity object, tells the cache how long to
keep contents having this key around. |
getKey | public Serializable getKey()(Code) | | Generate the unique key for the cache.
This key must be unique inside the space of this XSP page, it is used
to find the page contents in the cache (if getValidity says that the
contents are still valid).
This method will be invoked before the getValidity() method.
The generated key or null if the componentis currently not cacheable. |
getValidity | public SourceValidity getValidity()(Code) | | Generate the validity object, tells the cache how long to
keep contents having this key around. In this case, it will
be until an Event is retrieved matching the NamedEvent created below.
Before this method can be invoked the getKey() method
will be invoked.
The generated validity object or null if thecomponent is currently not cacheable. |
Fields inherited from org.apache.cocoon.generation.JXTemplateGenerator | final public static String NS(Code)(Java Doc)
|
|
|