Save This Page
Home » jcommon-1.0.13 » org.jfree.base.modules » [javadoc | source]
org.jfree.base.modules
abstract public class: AbstractModule [javadoc | source]
java.lang.Object
   org.jfree.base.modules.DefaultModuleInfo
      org.jfree.base.modules.AbstractModule

All Implemented Interfaces:
    Module, ModuleInfo

Direct Known Subclasses:
    DefaultLogModule

The abstract module provides a default implementation of the module interface.

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: 0
The 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:
 public AbstractModule() 
Method from org.jfree.base.modules.AbstractModule Summary:
configure,   getDescription,   getName,   getOptionalModules,   getProducer,   getRequiredModules,   getSubSystem,   isClassLoadable,   isClassLoadable,   loadModuleInfo,   loadModuleInfo,   performExternalInitialize,   performExternalInitialize,   setDescription,   setName,   setOptionalModules,   setProducer,   setRequiredModules,   setSubSystem,   toString
Methods from org.jfree.base.modules.DefaultModuleInfo:
equals,   getMajorVersion,   getMinorVersion,   getModuleClass,   getPatchLevel,   hashCode,   setMajorVersion,   setMinorVersion,   setModuleClass,   setPatchLevel,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.base.modules.AbstractModule Detail:
 public  void configure(SubSystem subSystem) 
    Configures the module by loading the configuration properties and adding them to the package configuration.
 public String getDescription() 
    Returns the module description.
 public String getName() 
    Returns the name of this module.
 public ModuleInfo[] getOptionalModules() 
    Returns a copy of the required modules array. This array contains all description of the optional modules that may improve the modules functonality.
 public String getProducer() 
    Returns the producer of the module.
 public ModuleInfo[] getRequiredModules() 
    Returns a copy of the required modules array. This array contains all description of the modules that need to be present to make this module work.
 public String getSubSystem() 
    Returns the modules subsystem. If this module is not part of an subsystem then return the modules name, but never null.
 protected static boolean isClassLoadable(String name) 
Deprecated! use - the method that passes in a context-class.

    Tries to load a class to indirectly check for the existence of a certain library.
 protected static boolean isClassLoadable(String name,
    Class context) 
    Tries to load a class to indirectly check for the existence of a certain library.
 protected  void loadModuleInfo() throws ModuleInitializeException 
    Loads the default module description from the file "module.properties". This file must be in the same package as the implementing class.
 protected  void loadModuleInfo(InputStream in) throws ModuleInitializeException 
    Loads the module descriptiong from the given input stream. The module description must conform to the rules define in the class description. The file must be encoded with "ISO-8859-1" (like property files).
 protected  void performExternalInitialize(String classname) throws ModuleInitializeException 
Deprecated! Use - the method that provides a class-context instead.

    Tries to load an module initializer and uses this initializer to initialize the module.
 protected  void performExternalInitialize(String classname,
    Class context) throws ModuleInitializeException 
 protected  void setDescription(String description) 
    Defines the description of the module.
 protected  void setName(String name) 
    Defines the name of the module.
 public  void setOptionalModules(ModuleInfo[] optionalModules) 
    Defines the optional module descriptions for this module.
 protected  void setProducer(String producer) 
    Defines the producer of the module.
 protected  void setRequiredModules(ModuleInfo[] requiredModules) 
    Defines the required module descriptions for this module.
 protected  void setSubSystem(String name) 
    Defines the subsystem name for this module.
 public String toString() 
    Returns a string representation of this module.