public abstract class AbstractModule extends DefaultModuleInfo implements Module
The module can be specified in an external property file. The file name of this specification defaults to "module.properties". This file is no real property file, it follows a more complex rule set.
Lines starting with '#' are considered comments. Section headers start at the beginning of the line, section properties are indented with at least one whitespace.
The first section is always the module info and contains the basic module properties like name, version and a short description.
module-info: name: xls-export-gui producer: The JFreeReport project - www.jfree.org/jfreereport description: A dialog component for the Excel table export. version.major: 0 version.minor: 84 version.patchlevel: 0The properties name, producer and description are simple strings. They may span multiple lines, but may not contain a colon (':'). The version properties are integer values.
This section may be followed by one or more "depends" sections. These sections describe the base modules that are required to be active to make this module work. The package manager will enforce this policy and will deactivate this module if one of the base modules is missing.
depends: module: org.jfree.report.modules.output.table.xls.XLSTableModule version.major: 0 version.minor: 84
The property module references to the module implementation of the module package.
Constructor and Description |
---|
AbstractModule()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
configure()
Configures the module by loading the configuration properties and
adding them to the package configuration.
|
java.lang.String |
getDescription()
Returns the module description.
|
java.lang.String |
getName()
Returns the name of this module.
|
ModuleInfo[] |
getOptionalModules()
Returns a copy of the required modules array.
|
java.lang.String |
getProducer()
Returns the producer of the module.
|
ModuleInfo[] |
getRequiredModules()
Returns a copy of the required modules array.
|
java.lang.String |
getSubSystem()
Returns the modules subsystem.
|
void |
setOptionalModules(ModuleInfo[] optionalModules)
Defines the optional module descriptions for this module.
|
java.lang.String |
toString()
Returns a string representation of this module.
|
equals, getMajorVersion, getMinorVersion, getModuleClass, getPatchLevel, hashCode, setMajorVersion, setMinorVersion, setModuleClass, setPatchLevel
initialize
getMajorVersion, getMinorVersion, getModuleClass, getPatchLevel
public java.lang.String getName()
public java.lang.String getDescription()
getDescription
in interface Module
org.jfree.report.modules.Module#getDescription()
public java.lang.String getProducer()
getProducer
in interface Module
org.jfree.report.modules.Module#getProducer()
public ModuleInfo[] getRequiredModules()
getRequiredModules
in interface Module
org.jfree.report.modules.Module#getRequiredModules()
public ModuleInfo[] getOptionalModules()
getOptionalModules
in interface Module
org.jfree.report.modules.Module#getRequiredModules()
public void setOptionalModules(ModuleInfo[] optionalModules)
optionalModules
- the optional modules.public java.lang.String toString()
toString
in class DefaultModuleInfo
Object.toString()
public void configure() throws ConfigException
configure
in interface Module
ConfigException
public java.lang.String getSubSystem()
getSubSystem
in interface Module