|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Templating
Templating component.
| Method Summary | |
|---|---|
TemplatingContext |
createContext()
Create an empty TemplatingContext object. |
Template |
getTemplate(String name)
Get the specified template. |
String |
getTemplateEncoding()
Return the character encoding of the template files. |
void |
invalidateTemplate(String name)
Invalidate template in local cache. |
void |
merge(TemplatingContext context,
Reader source,
Writer target,
String name)
Merge a template dynamically. |
void |
merge(TemplatingContext context,
Template template,
Writer target)
Merge a template. |
void |
restart()
Restart the templating service. |
boolean |
templateExists(String name)
Checks if the template with a given name exists. |
| Method Detail |
|---|
void restart()
throws ComponentInitializationError,
VirtualMachineError,
ThreadDeath
ComponentInitializationError - if anything goes wrong.
VirtualMachineError - if anything goes wrong.
ThreadDeath - if anything goes wrong.TemplatingContext createContext()
TemplatingContext object.
boolean templateExists(String name)
name - template name.
true if exists.
Template getTemplate(String name)
throws TemplateNotFoundException
name - template name.
TemplateNotFoundException - if does not exist.
void merge(TemplatingContext context,
Reader source,
Writer target,
String name)
throws MergingException
context - the templating context.source - the reader with template source.target - the writer to write the result.name - the template name for logging purposes.
MergingException - if something goes wrong.
void merge(TemplatingContext context,
Template template,
Writer target)
throws MergingException
context - the templating context.template - the template.target - the writer to write the result.
MergingException - if something goes wrong.String getTemplateEncoding()
void invalidateTemplate(String name)
name - the template name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||