01: package freemarker.cache;
02:
03: import freemarker.template.Configuration;
04:
05: /**
06:
07: * Interface that can be implemented by template loaders that maintain some
08:
09: * sort of internal state (i.e. caches of earlier lookups for performance
10:
11: * optimization purposes etc.) and support resetting of their state.
12:
13: * @author Attila Szegedi
14:
15: * @version $Id: StatefulTemplateLoader.java,v 1.1.2.1 2007/04/03 18:06:07 szegedia Exp $
16:
17: */
18:
19: public interface StatefulTemplateLoader extends TemplateLoader
20:
21: {
22:
23: /**
24:
25: * Invoked by {@link Configuration#clearTemplateCache()} to instruct this
26:
27: * template loader to throw away its current state and start afresh.
28:
29: */
30:
31: public void resetState();
32:
33: }
|