|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.irisel.modules.PackageState
public class 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 | |
|---|---|
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()
Configures the module and raises the state to STATE_CONFIGURED if the module is not yet configured. |
boolean |
equals(java.lang.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()
Initializes the contained module and raises the set of the module to STATE_INITIALIZED, if the module was not yet initialized. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATE_NEW
public static final int STATE_CONFIGURED
public static final int STATE_INITIALIZED
public static final int STATE_ERROR
| Constructor Detail |
|---|
public PackageState(Module module)
module - the module.
public PackageState(Module module,
int state)
module - the module.state - the initial state| Method Detail |
|---|
public boolean configure()
public Module getModule()
public int getState()
public boolean initialize()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the other object to be compared
Object.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||