|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.base.modules.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. |
Method Summary | |
---|---|
void |
addModule(String modClass)
Adds a module to the package manager. |
static PackageManager |
createInstance(AbstractBoot booter)
Creates a package manager instance. |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PackageManager createInstance(AbstractBoot booter)
booter
- the booter.
public boolean isModuleAvailable(ModuleInfo moduleDescription)
moduleDescription
- the module description of the desired module.
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.
|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |