org.pentaho.reporting.libraries.base.boot
public final class PackageManager extends Object
| Nested Class Summary | |
|---|---|
| static class | PackageManager.PackageConfiguration
The PackageConfiguration handles the module level configuration.
|
| Constructor Summary | |
|---|---|
| PackageManager(AbstractBoot booter)
Creates a new package manager.
| |
| Method Summary | |
|---|---|
| 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.
|
Parameters: booter the booter (null not permitted).
Parameters: modClass the module class
Returns: the list of all active modules.
Returns: the modules.
Returns: the package configuration.
Parameters: moduleDescription the module description of the desired module.
Returns: true, if the module is available and the version of the module is compatible, false otherwise.
Parameters: moduleClass the module class to be checked.
Returns: true, if the module is available and initialized, false otherwise.
Parameters: modulePrefix the module prefix.
Parameters: p the print stream.