|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.webmacro.servlet.TemplateTool.MacroTemplateFactory
A factory class for creating MacroTemplate objects.
Constructor Summary | |
TemplateTool.MacroTemplateFactory(Context ctx)
Constructor |
Method Summary | |
TemplateTool.MacroTemplate |
fromFile(java.lang.String fileRef)
Creates a MacroTemplate from a file reference with a new context. |
TemplateTool.MacroTemplate |
fromString(java.lang.String s)
Creates a MacroTemplate from a string with a new context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateTool.MacroTemplateFactory(Context ctx)
ctx
- the context for the current requestMethod Detail |
public TemplateTool.MacroTemplate fromString(java.lang.String s)
s
- the template stringpublic TemplateTool.MacroTemplate fromFile(java.lang.String fileRef) throws ResourceException
fileRef
- a reference to the template fileResourceException
- if the file cannot be found or parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |