public class ModuleGroup extends ScriptModule implements XMLOptionsHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<Module> |
childModules |
engine, initScript, persistentObjects, scriptManager, startScript, stopScript
autoStart, 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, stop
getDependencies, isInitialized, isRunning, requireLogging, toString
protected final java.util.ArrayList<Module> childModules
public void startGroup(boolean withDependencies) throws ModuleException
ModuleException
public void stopGroup(boolean cascading) throws ModuleException
ModuleException
public 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.ReflectiveOperationException
javax.script.ScriptException
public 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
XMLOptionsHandler
parseXMLOptionsElement
in interface XMLOptionsHandler
manager
- 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.ReflectiveOperationException
javax.script.ScriptException
Copyright 2004-2015 Wandora Team