freemarker.template.cache
Interface Cacheable

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
AbstractTemplate, BinaryData, Template, UnparsedTemplate

public interface Cacheable
extends java.lang.Cloneable

Abstracts information relating to the caching of a particular object. Any object that needs to be held in a Cache needs to implement this interface.

Version:
$Id: Cacheable.java 1003 2004-10-16 14:54:58Z run2000 $
See Also:
Cache

Method Summary
 java.lang.Object clone()
          Retrieve a clone of the current object.
 Cache getCache()
          Retrieve the Cache that this object is stored in.
 void setCache(Cache cache)
          Sets the Cache that this object is stored in.
 

Method Detail

setCache

void setCache(Cache cache)
Sets the Cache that this object is stored in.

Parameters:
cache - the Cache that this template belongs to.

getCache

Cache getCache()
Retrieve the Cache that this object is stored in.

Returns:
the Cache that this template belongs to.

clone

java.lang.Object clone()
Retrieve a clone of the current object.