public static enum Module.State extends Enum<Module.State>
| Enum Constant and Description |
|---|
ACTIVE
The module is now running.
|
INSTALLED
A module is in the
INSTALLED state when it has been installed in the Runtime |
RESOLVED
The module is resolved and is able to be started.
|
STARTING
The module is in the process of starting.
|
STOPPING
The module is in the process of stopping.
|
UNINSTALLED
The module is uninstalled and may not be used.
|
| Modifier and Type | Method and Description |
|---|---|
static Module.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Module.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Module.State INSTALLED
INSTALLED state when it has been installed in the Runtimepublic static final Module.State RESOLVED
public static final Module.State STARTING
A module is in the STARTING state when its start method is active. A module must be in this state when the module's
ModuleActivator.start(ModuleContext) is called. If the
ModuleActivator.start(ModuleContext) method completes without exception, then
the module has successfully started and must move to the ACTIVE
state.
public static final Module.State ACTIVE
A module is in the ACTIVE state when it has been successfully
started and activated.
public static final Module.State STOPPING
A module is in the STOPPING state when its stop method is active. A module must be in this state when the module's
ModuleActivator.stop(ModuleContext) method is called. When the
ModuleActivator.stop method completes the module is stopped and
must move to the RESOLVED state.
public static final Module.State UNINSTALLED
public static Module.State[] values()
for (Module.State c : Module.State.values()) System.out.println(c);
public static Module.State 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 © 2013 JBoss by Red Hat. All Rights Reserved.