|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.source_code.miniTemplator.MiniTemplatorCache
public class MiniTemplatorCache
A cache manager for MiniTemplator objects. This class is used to cache MiniTemplator objects in memory, so that each template file is only read and parsed once.
Home page: www.source-code.biz/MiniTemplator
Author: Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland
Multi-licensed: EPL/LGPL.
| Constructor Summary | |
|---|---|
MiniTemplatorCache()
Creates a new MiniTemplatorCache object. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the cache. |
MiniTemplator |
get(MiniTemplator.TemplateSpecification templateSpec)
Returns a cloned MiniTemplator object from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MiniTemplatorCache()
| Method Detail |
|---|
public MiniTemplator get(MiniTemplator.TemplateSpecification templateSpec)
throws IOException,
MiniTemplator.TemplateSyntaxException
templateFileName
in the cache, a new MiniTemplator object is created and stored in the cache.
Then the cached MiniTemplator object is cloned and the clone object is returned.
templateSpec - the template specification.
IOException
MiniTemplator.TemplateSyntaxExceptionpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||