freemarker.template.cache
Interface Cacheable

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

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,v 1.7 2003/11/03 03:33:32 run2000 Exp $
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

public void setCache(Cache cache)
Sets the Cache that this object is stored in.
Parameters:
cache - the Cache that this template belongs to.

getCache

public Cache getCache()
Retrieve the Cache that this object is stored in.
Returns:
the Cache that this template belongs to.

clone

public java.lang.Object clone()
Retrieve a clone of the current object.
Overrides:
clone in class java.lang.Object