public abstract class ScriptApplicationManager extends ApplicationManager
ApplicationManager.Environment| Modifier and Type | Field and Description |
|---|---|
protected File |
file |
protected String |
filename |
protected boolean |
reload |
ACCESSDENIED, 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 |
|---|
ScriptApplicationManager() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getFilename(String script)
The default implementation of this method assumes the script will
be in the /APP/WEB-INF/ directory.
|
protected abstract String |
getScriptName()
Returns the file name of the Script that implements the
ApplicationManager.
|
void |
runScript(Context application)
Call this method to execute the configuration script.
|
abstract void |
runScript(String scriptFile,
Context application)
Subclasses should override this method to implement the details of how to
execute the script from Java.
|
void |
setReloadMode(boolean reload)
Set reload mode to false if you don't want this class to check
if the script was modified and force a reload at runtime.
|
action, 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, 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, stringprotected String filename
protected File file
protected boolean reload
public void setReloadMode(boolean reload)
setReloadMode in class ApplicationManagerreload - a flag to indicate if reload mode is on or offprotected String getFilename(String script)
script - The name of the script to be loadedpublic void runScript(Context application)
application - The application context for this web applicationpublic abstract void runScript(String scriptFile, Context application)
scriptFile - The absolute path to the script file.application - The application context for this web application.protected abstract String getScriptName()
Copyright © 2015. All Rights Reserved.