public class BshApplicationManager extends ScriptApplicationManager
ApplicationManager.Environment| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCRIPT_NAME
The name of the script file.
|
static String |
METHOD_NAME
The method name inside the script file to execute.
|
file, filename, reloadACCESSDENIED, ACTION, ADD, AJAX, ALREADY, APPLICATION, BACK, BLOCKED, container, CONTEXT_PATH, CREATED, DEFAULT_ENVIRONMENT, EDIT, ERROR, EXCEPTION, EXTENSION, HTML, INDEX, INPUT, JSON, JSP, LIST, LOGIN, MAIN, MENTAWAI_BUILD, MENTAWAI_VERSION, NEXT, NOT_FOUND, OUTPUT, PORT, REDIR, REMOVED, REQUEST, SESSION, SHOW, STREAM, SUCCESS, TEST, UPDATED, XML| Constructor and Description |
|---|
BshApplicationManager() |
| Modifier and Type | Method and Description |
|---|---|
protected 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(String scriptFile,
Context application)
Subclasses should override this method to implement the details of how to
execute the script from Java.
|
getFilename, runScript, setReloadModeaction, action, action, action, add, add, addActionConfig, addActionPackage, addBeanConfig, addComponent, addDependency, addDependency, addGlobalConsequence, addGlobalFilter, addGlobalFilter, addGlobalFilter, addGlobalFilter, addGlobalFilter, addList, addList, addLists, addLists, addLocale, addLocale, addLocales, addLocales, addLocalizedLists, addLocalizedLists, addSessionListener, ajax, autowire, autowire, autowire, autoWiring, autoWiring, aw, aw, bean, chain, chain, chain, chain, configureActions, createConnectionHandler, createJPAHandler, createSessionHandler, destroy, di, di, exception, filter, filter, filter, filter, filter, filterLast, filterLast, filterLast, fwd, fwd, getActionConfig, getActionConfig, getActions, getApplication, getBeanConfig, getBeanManager, getComponent, getComponentNames, getComponents, getConnectionHandler, getConsequenceProvider, getContainer, getContextPath, getDefaultAction, getDependencies, getEnvironment, getExtension, getGlobalConsequence, getGlobalFilters, getGlobalFilters, getGlobalFilters, getInstance, getParent, getProperties, getProps, getProps, getRealPath, getReqCharEncoding, getSessionListeners, getViewDir, init, internal, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, loadActions, loadBeans, loadFilters, loadFormatters, loadLists, loadLocales, on, on, onStarted, redir, redir, redir, redir, redir, redir, redir, redir, redir, redir, removeActionConfig, removeActionPackage, reset, result, ruby, ruby, ruby, setAutoView, setAutowireEverything, setConnectionHandler, setConsequenceProvider, setDateMaskForEverything, setDebugMode, setDebugMode, setDefaultAction, setEnvironment, setJPAHandler, setRealPath, setReloadable, setRemoveActionFromName, setReqCharEncoding, setSessionHandler, setStatsMode, setupDB, setupIoC, setViewDir, setWebappPath, spring, spring, stream, string, stringpublic static final String DEFAULT_SCRIPT_NAME
public static final String METHOD_NAME
public void init(Context application)
init in class ApplicationManagerapplication - The application context for this web application.protected String getScriptName()
ScriptApplicationManagergetScriptName in class ScriptApplicationManagerprotected void prepareScript(bsh.Interpreter i)
throws bsh.EvalError
bsh.EvalErrorpublic void runScript(String scriptFile, Context application)
ScriptApplicationManagerrunScript in class ScriptApplicationManagerscriptFile - The absolute path to the script file.application - The application context for this web application.Copyright © 2015. All Rights Reserved.