public final class PackageManager extends Object
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 between 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.
Modifier and Type | Class and Description |
---|---|
static class |
PackageManager.PackageConfiguration
The PackageConfiguration handles the module level configuration.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2001–2018 JFree.org. All rights reserved.