public final class PackageManager extends Object
Modifier and Type | Class and Description |
---|---|
class |
PackageManager.BootTimeEntry |
static class |
PackageManager.PackageConfiguration
The PackageConfiguration handles the module level configuration.
|
Constructor and Description |
---|
PackageManager(AbstractBoot booter)
Creates a new package manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addModule(String modClass)
Adds a module to the package manager.
|
Module[] |
getActiveModules()
Returns all active modules.
|
Module[] |
getAllModules()
Returns an array of the currently active modules.
|
PackageManager.PackageConfiguration |
getPackageConfiguration()
Returns the default package configuration.
|
void |
initializeModules()
Initializes all previously uninitialized modules.
|
boolean |
isModuleAvailable(ModuleInfo moduleDescription)
Checks, whether a certain module is available.
|
boolean |
isModuleAvailable(String moduleClass)
Checks whether the given module is available.
|
void |
load(String modulePrefix)
Loads all modules mentioned in the report configuration starting with the given prefix.
|
void |
printUsedModules(PrintStream p)
Prints the modules that are used.
|
public PackageManager(AbstractBoot booter)
booter
- the booter (null
not permitted).public boolean isModuleAvailable(ModuleInfo moduleDescription)
moduleDescription
- the module description of the desired module.public boolean isModuleAvailable(String moduleClass)
moduleClass
- the module class to be checked.public void load(String modulePrefix)
modulePrefix
- the module prefix.public void initializeModules()
public void addModule(String modClass)
modClass
- the module classpublic PackageManager.PackageConfiguration getPackageConfiguration()
public Module[] getAllModules()
public Module[] getActiveModules()
public void printUsedModules(PrintStream p)
p
- the print stream.