public static enum NucleusModuleEvent.ModuleEnableState extends Enum<NucleusModuleEvent.ModuleEnableState>
Enum Constant and Description |
---|
DISABLED
Indicates that the module has been disabled and will not be/has not been loaded.
|
ENABLED
Indicates that the module is currently enabled and will be, or has been, loaded.
|
FORCE_ENABLED
Indicates that the module is currently enabled and cannot be disabled.
|
Modifier and Type | Method and Description |
---|---|
static NucleusModuleEvent.ModuleEnableState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NucleusModuleEvent.ModuleEnableState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NucleusModuleEvent.ModuleEnableState DISABLED
public static final NucleusModuleEvent.ModuleEnableState ENABLED
Modules in this state can be disabled any time before NucleusModuleEvent.AboutToEnable
completes, using
NucleusModuleEvent.AboutToConstruct.disableModule(String, Object)
.
public static final NucleusModuleEvent.ModuleEnableState FORCE_ENABLED
public static NucleusModuleEvent.ModuleEnableState[] values()
for (NucleusModuleEvent.ModuleEnableState c : NucleusModuleEvent.ModuleEnableState.values()) System.out.println(c);
public static NucleusModuleEvent.ModuleEnableState 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 null