|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.base.boot.PackageManager
public final class PackageManager
The PackageManager is used to load and configure the modules of JFreeReport. Modules are used to extend the basic capabilities of JFreeReport by providing a simple plugin-interface.
Modules provide a simple capability to remove unneeded functionality from the JFreeReport system and to reduce the overall code size. The modularisation provides a very strict way of removing unnecessary dependencies beween the various packages. The package manager can be used to add new modules to the system or to check the existence and state of installed modules.
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(java.lang.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(java.lang.String moduleClass)
Checks whether the given module is available. |
void |
load(java.lang.String modulePrefix)
Loads all modules mentioned in the report configuration starting with the given prefix. |
void |
printUsedModules(java.io.PrintStream p)
Prints the modules that are used. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PackageManager(AbstractBoot booter)
booter
- the booter (null
not permitted).Method Detail |
---|
public boolean isModuleAvailable(ModuleInfo moduleDescription)
moduleDescription
- the module description of the desired module.
public boolean isModuleAvailable(java.lang.String moduleClass)
moduleClass
- the module class to be checked.
public void load(java.lang.String modulePrefix)
modulePrefix
- the module prefix.public void initializeModules()
public void addModule(java.lang.String modClass)
modClass
- the module classpublic PackageManager.PackageConfiguration getPackageConfiguration()
public Module[] getAllModules()
public Module[] getActiveModules()
public void printUsedModules(java.io.PrintStream p)
p
- the print stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |