|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.modules.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.
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. |
static PackageManager |
getInstance()
Returns the singleton instance of the package manager. |
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(java.lang.String modulePrefix)
Loads all modules mentioned in the report configuration starting with the given prefix. |
static void |
main(java.lang.String[] args)
|
void |
printUsedModules(java.io.PrintStream p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static PackageManager getInstance()
public boolean isModuleAvailable(ModuleInfo moduleDescription)
moduleDescription
- the module description of the desired module.
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 PackageConfiguration getPackageConfiguration()
public Module[] getAllModules()
public Module[] getActiveModules()
public void printUsedModules(java.io.PrintStream p)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |