freemarker.template
Interface Updatable

All Known Implementing Classes:
FileTemplateCache, FileBinaryCache

public interface Updatable

An interface for objects that need to be reminded to update themselves from time to time.

Two update styles are supported: blank and named. A blankupdate leaves the decision about what has to be updated to the implementation whereas a named update guarantees that only objects with a given name are updated.

Blank updates are well suited for recurring events where a set of objects has to be refreshed periodically. Named updates correspond to "push" methodology where the decision to update a specific set of objects is made on an ad hoc basis.

See Also:
FileTemplateCache

Method Summary
 void update()
          Asks for a "blank" update.
 void update(java.lang.String name)
          Asks for the named object to be updated
 

Method Detail

update

public void update()
Asks for a "blank" update. It is up to the implementation to determine what has to be updated.

update

public void update(java.lang.String name)
Asks for the named object to be updated
Parameters:
name - the name of the object to update