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.
author: Thomas Morgner
initializeModules() Initializes all previously uninitialized modules.
public boolean
isModuleAvailable(ModuleInfo moduleDescription) Checks, whether a certain module is available.
Parameters: moduleDescription - the module description of the desired module.
public void
load(String modulePrefix) Loads all modules mentioned in the report configuration starting with
the given prefix.
public synchronized void addModule(String modClass)(Code)
Adds a module to the package manager.
Once all modules are added, you have to call initializeModules()
to configure and initialize the new modules.
Parameters: modClass - the module class
Returns an array of the currently active modules. The module definition
returned contain all known modules, including buggy and unconfigured
instances.
the modules.
getPackageConfiguration
public PackageConfiguration getPackageConfiguration()(Code)
Returns the default package configuration. Private report configuration
instances may be inserted here. These inserted configuration can never override
the settings from this package configuration.
the package configuration.
initializeModules
public synchronized void initializeModules()(Code)
Initializes all previously uninitialized modules. Once a module is initialized,
it is not re-initialized a second time.
isModuleAvailable
public boolean isModuleAvailable(ModuleInfo moduleDescription)(Code)
Checks, whether a certain module is available.
Parameters: moduleDescription - the module description of the desired module. true, if the module is available and the version of the moduleis compatible, false otherwise.
Loads all modules mentioned in the report configuration starting with
the given prefix. This method is used during the boot process of
JFreeReport. You should never need to call this method directly.
Parameters: modulePrefix - the module prefix.