public class ModuleGroup extends ScriptModule implements XMLOptionsHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<Module> |
childModules |
engine, initScript, persistentObjects, scriptManager, startScript, stopScriptautoStart, isInitialized, isRunning, logging, loggingModule, moduleManager| Constructor and Description |
|---|
ModuleGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildModule(Module m) |
java.util.Collection<Module> |
getChildModules() |
java.util.Collection<Module> |
getChildModulesRecursive() |
protected void |
parseChildModules(ModuleManager manager,
org.w3c.dom.Element e,
java.lang.String source) |
java.util.HashMap<java.lang.String,java.lang.Object> |
parseXMLOptionsElement(ModuleManager manager,
org.w3c.dom.Element e,
java.lang.String source)
Parses the given module element and returns a map containing the
module parameters.
|
void |
startGroup(boolean withDependencies) |
void |
stopGroup(boolean cascading) |
getScriptEngine, init, start, stopgetDependencies, isInitialized, isRunning, requireLogging, toStringprotected final java.util.ArrayList<Module> childModules
public void startGroup(boolean withDependencies)
throws ModuleException
ModuleExceptionpublic void stopGroup(boolean cascading)
throws ModuleException
ModuleExceptionpublic void addChildModule(Module m)
public java.util.Collection<Module> getChildModules()
public java.util.Collection<Module> getChildModulesRecursive()
protected void parseChildModules(ModuleManager manager, org.w3c.dom.Element e, java.lang.String source) throws java.lang.ReflectiveOperationException, javax.script.ScriptException
java.lang.ReflectiveOperationExceptionjavax.script.ScriptExceptionpublic java.util.HashMap<java.lang.String,java.lang.Object> parseXMLOptionsElement(ModuleManager manager, org.w3c.dom.Element e, java.lang.String source) throws java.lang.ReflectiveOperationException, javax.script.ScriptException
XMLOptionsHandlerparseXMLOptionsElement in interface XMLOptionsHandlermanager - The module manager handling this module.e - The module element which is to be parsed.source - The source identifier for the module, could be the file name
where the module comes from or something else.java.lang.ReflectiveOperationExceptionjavax.script.ScriptExceptionCopyright 2004-2015 Wandora Team