|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.system.ModuleManager
public class ModuleManager
Handles loading and tracking installed modules.
Copyright 2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
ModuleManager()
|
|
| Method Summary | |
|---|---|
void |
bootstrap()
This method loads, validates, and initializes the modules. |
java.lang.String |
getJavaLibraryPath()
Generates a library path (like java.library.path) with all available os/FOO/lib directories from all modules. |
Naming<Module> |
getModules()
|
void |
initializeModules()
Initializes the list of active modules, in priority order, by calling each module's initialization scripts. |
boolean |
isBootstrapped()
|
boolean |
isWatchingForNewFiles()
|
java.util.List<Module> |
listActiveModules()
Returns the list of active modules, in priority order. |
java.util.List<VfsFile> |
listAllJars()
This method returns a list of all jars that will be loaded. |
void |
loadModules()
This method loads all modules in ConfigLevel priority order, so that e.g. |
Module |
moduleNamed(java.lang.String name)
Returns the named module, or null if it does not exist or is not active. |
void |
runEventScripts(java.lang.String sourceModule,
java.lang.String event,
Naming<java.lang.Object> variables)
Runs event scripts in all active modules. |
void |
setWatchingForNewFiles(boolean watchingForNewFiles)
|
void |
shutdownModules()
Shuts down the list of active modules, in priority order, by calling each module's shutdwown scripts. |
void |
startupModules()
Starts the list of active modules, in priority order, by calling each module's startup scripts. |
void |
validateModules()
Validates the loaded modules, generating the set of valid, active modules. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleManager()
| Method Detail |
|---|
public void bootstrap()
public boolean isBootstrapped()
public java.util.List<VfsFile> listAllJars()
public void loadModules()
public void validateModules()
public void initializeModules()
public void startupModules()
public void shutdownModules()
public java.util.List<Module> listActiveModules()
public void runEventScripts(java.lang.String sourceModule,
java.lang.String event,
Naming<java.lang.Object> variables)
public Module moduleNamed(java.lang.String name)
public boolean isWatchingForNewFiles()
public void setWatchingForNewFiles(boolean watchingForNewFiles)
public Naming<Module> getModules()
public java.lang.String getJavaLibraryPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||