Package com.sun.enterprise.module
Enum ModuleState
- All Implemented Interfaces:
Serializable
,Comparable<ModuleState>
ModuleState define the state of a Module instance.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiona Module is in ERROR state when its class loader cannot be constructed or when any of its dependent module is in ERROR state.a Module is in NEW state when the module object is constructed but not initializeda Module is in PREPARING state when the module looks for its import policy class if any or use the default import policy to construct the network of dependency modules.the Module has been started as all its dependencies were satisfieda Module is in RESOLVED state when the validation is finished and successful and before the module is started -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleState
Returns the enum constant of this type with the specified name.static ModuleState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEW
a Module is in NEW state when the module object is constructed but not initialized -
PREPARING
a Module is in PREPARING state when the module looks for its import policy class if any or use the default import policy to construct the network of dependency modules. -
RESOLVED
a Module is in RESOLVED state when the validation is finished and successful and before the module is started -
READY
the Module has been started as all its dependencies were satisfied -
ERROR
a Module is in ERROR state when its class loader cannot be constructed or when any of its dependent module is in ERROR state.
-
-
Constructor Details
-
ModuleState
private ModuleState()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-