public class ModuleManager
extends java.lang.Object
Copyright 2007 Partner Software, Inc.
| Constructor and Description |
|---|
ModuleManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.List<VfsDirectory> |
listAllLibraryDirectories()
Returns all native library directories for all loaded modules.
|
void |
loadModules()
This method loads all modules in ConfigLevel priority order, so that e.g.
|
void |
loadSchema() |
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.
|
public void bootstrap()
public boolean isBootstrapped()
public java.util.List<VfsFile> listAllJars()
public void loadModules()
public void validateModules()
public void loadSchema()
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 java.util.List<VfsDirectory> listAllLibraryDirectories()
public java.lang.String getJavaLibraryPath()