|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.scripting.AbstractScript
com.partnersoft.scripting.StringTemplateScript
public class StringTemplateScript
A script that uses the Terence Parr's StringTemplate library from http://www.stringtemplate.org/.
These are not general purpose scripts, but instead return Strings generated by applying the variables to the template.
Copyright 2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
StringTemplateScript(VfsFile file)
Creates a new StringTemplate script from the given file. |
|
| Method Summary | |
|---|---|
protected void |
reloadImp()
Subclasses should implement this method to do any maintenance associated with changes in the source file. |
protected java.lang.Object |
runScriptImp(Naming<java.lang.Object> variables)
Subclasses should implement this method with their actual script-running implementation. |
| Methods inherited from class com.partnersoft.scripting.AbstractScript |
|---|
getFile, getName, getScriptLog, getThrown, getVariable, getVariables, isModified, parse, run, runScript, runThreaded, setThrown, setVariable, setVariables, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringTemplateScript(VfsFile file)
| Method Detail |
|---|
protected void reloadImp()
throws java.lang.Exception
AbstractScript
reloadImp in class AbstractScriptjava.lang.Exception
protected java.lang.Object runScriptImp(Naming<java.lang.Object> variables)
throws java.lang.Exception
AbstractScript
runScriptImp in class AbstractScriptjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||