|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.core.ModuleManager
public final class ModuleManager
The ModuleManager
is responsible for managing kernel
modules.
Method Summary | |
---|---|
static ModuleManager |
getInstance()
Returns the one and only instance of the DRAGOS kernel. |
KernelModule |
getKernelModule(java.lang.String role)
Returns the kernel module identified by the role. |
KernelModule |
loadModule(java.lang.String clazzName)
Loads a kernel module with the given class name and returns the instance that has been created. |
void |
shutdown()
Shutdown the module manager and unload all modules. |
void |
unloadAllModules()
Unloads all modules managed by the module manager in the reverse order of their insertion. |
void |
unloadModule(java.lang.String role)
Unloads the given module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ModuleManager getInstance()
public void shutdown()
public KernelModule getKernelModule(java.lang.String role)
role
- The role of the kernel module
public KernelModule loadModule(java.lang.String clazzName)
clazzName
- The class of the kernel module.
public void unloadModule(java.lang.String role)
role
- The name of the module that should be unloaded.public void unloadAllModules()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |