org.pentaho.reporting.libraries.base.boot
public class PackageState extends Object
| Field Summary | |
|---|---|
| static int | STATE_CONFIGURED
A constant defining that the package has been loaded and configured. |
| static int | STATE_ERROR
A constant defining that the package produced an error and is not available. |
| static int | STATE_INITIALIZED
A constant defining that the package was initialized and is ready to use. |
| static int | STATE_NEW
A constant defining that the package is new. |
| Constructor Summary | |
|---|---|
| PackageState(Module module)
Creates a new package state for the given module. | |
| PackageState(Module module, int state)
Creates a new package state for the given module. | |
| Method Summary | |
|---|---|
| boolean | configure(SubSystem subSystem)
Configures the module and raises the state to STATE_CONFIGURED if the
module is not yet configured.
|
| boolean | equals(Object o)
Compares this object with the given other object for equality.
|
| Module | getModule()
Returns the module managed by this state implementation.
|
| int | getState()
Returns the current state of the module. |
| int | hashCode()
Computes a hashcode for this package state.
|
| 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. |
| void | markError()
Marks this package state as invalid. |
Parameters: module the module.
Parameters: module the module. state the initial state
Parameters: subSystem the sub-system.
Returns: true, if the module was configured, false otherwise.
Parameters: o the other object to be compared
Returns: true, if the other object is also a PackageState containing the same module, false otherwise.
See Also: Object#equals(Object)
Returns: the module.
Returns: the module state.
Returns: the hashcode.
See Also: Object#hashCode()
Parameters: subSystem the sub-system.
Returns: true, if the module was successfully initialized, false otherwise.