Save This Page
Home » jcommon-1.0.13 » org.jfree.base.modules » [javadoc | source]
org.jfree.base.modules
public class: PackageState [javadoc | source]
java.lang.Object
   org.jfree.base.modules.PackageState
The package state class is used by the package manager to keep track of the activation level of the installed or errornous packages.
Field Summary
public static final  int STATE_NEW    A constant defining that the package is new. 
public static final  int STATE_CONFIGURED    A constant defining that the package has been loaded and configured. 
public static final  int STATE_INITIALIZED    A constant defining that the package was initialized and is ready to use. 
public static final  int STATE_ERROR    A constant defining that the package produced an error and is not available. 
Constructor:
 public PackageState(Module module) 
    Creates a new package state for the given module. The module state will be initialized to STATE_NEW.
    Parameters:
    module - the module.
 public PackageState(Module module,
    int state) 
    Creates a new package state for the given module. The module state will be initialized to the given initial state.
    Parameters:
    module - the module.
    state - the initial state
Method from org.jfree.base.modules.PackageState Summary:
configure,   equals,   getModule,   getState,   hashCode,   initialize
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.base.modules.PackageState Detail:
 public boolean configure(SubSystem subSystem) 
    Configures the module and raises the state to STATE_CONFIGURED if the module is not yet configured.
 public boolean equals(Object o) 
    Compares this object with the given other object for equality.
 public Module getModule() 
    Returns the module managed by this state implementation.
 public int getState() 
    Returns the current state of the module. This method returns either STATE_NEW, STATE_CONFIGURED, STATE_INITIALIZED or STATE_ERROR.
 public int hashCode() 
    Computes a hashcode for this package state.
 public boolean initialize(SubSystem subSystem) 
    Initializes the contained module and raises the set of the module to STATE_INITIALIZED, if the module was not yet initialized. In case of an error, the module state will be set to STATE_ERROR and the module will not be available.