public enum ModuleState extends Enum<ModuleState>
Enum Constant and Description |
---|
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.
|
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.
|
READY
the Module has been started as all its dependencies were satisfied
|
RESOLVED
a Module is in RESOLVED state when the validation is finished and
successful and before the module is started
|
Modifier and Type | Method and Description |
---|---|
static ModuleState |
valueOf(String name)
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.
|
public static final ModuleState NEW
public static final ModuleState PREPARING
public static final ModuleState RESOLVED
public static final ModuleState READY
public static final ModuleState ERROR
public static ModuleState[] values()
for (ModuleState c : ModuleState.values()) System.out.println(c);
public static ModuleState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2009–2023 Oracle Corporation. All rights reserved.