|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.ApplicationManager
org.mentawai.core.ScriptApplicationManager
org.mentawai.core.BshApplicationManager
public class BshApplicationManager
A ScriptApplicationManager that executes a BeanShell script file to configure itself.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SCRIPT_NAME
The name of the script file. |
static java.lang.String |
METHOD_NAME
The method name inside the script file to execute. |
| Fields inherited from class org.mentawai.core.ScriptApplicationManager |
|---|
file, filename, reload |
| Fields inherited from class org.mentawai.core.ApplicationManager |
|---|
ACCESSDENIED, ACTION, ALREADY, APPLICATION, BLOCKED, CREATED, ERROR, EXCEPTION, EXTENSION, INDEX, INPUT, JSP, LIST, LOGIN, MAIN, MENTAWAI_BUILD, MENTAWAI_VERSION, OUTPUT, REDIR, REMOVED, REQUEST, SESSION, SHOW, SUCCESS, TEST, UPDATED |
| Constructor Summary | |
|---|---|
BshApplicationManager()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getScriptName()
Returns the file name of the Script that implements the ApplicationManager. |
void |
init(Context application)
Here we are just calling setScriptName(DEFAULT_SCRIPT_NAME) and runScript(application). |
protected void |
prepareScript(bsh.Interpreter i)
|
void |
runScript(java.lang.String scriptFile,
Context application)
Subclasses should override this method to implement the details of how to execute the script from Java. |
| Methods inherited from class org.mentawai.core.ScriptApplicationManager |
|---|
getFilename, runScript, setReloadMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SCRIPT_NAME
public static final java.lang.String METHOD_NAME
| Constructor Detail |
|---|
public BshApplicationManager()
| Method Detail |
|---|
public void init(Context application)
init in class ApplicationManagerapplication - The application context for this web application.protected java.lang.String getScriptName()
ScriptApplicationManager
getScriptName in class ScriptApplicationManager
protected void prepareScript(bsh.Interpreter i)
throws bsh.EvalError
bsh.EvalError
public void runScript(java.lang.String scriptFile,
Context application)
ScriptApplicationManager
runScript in class ScriptApplicationManagerscriptFile - The absolute path to the script file.application - The application context for this web application.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||