Package org.jboss.msc.service
Enum Class ServiceController.Mode
- All Implemented Interfaces:
Serializable,Comparable<ServiceController.Mode>,Constable
- Enclosing interface:
- ServiceController<S>
The controller mode for a service.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDemand to start, recursively demanding dependencies.Only come up if all dependencies are satisfied and at least one dependent demands to start.Do not start; in addition, ignore demands from dependents.Only come up if all dependencies are satisfied and at least one dependent demands to start.Come up automatically as soon as all dependencies are satisfied.Remove this service and all of its dependents. -
Method Summary
Modifier and TypeMethodDescriptionbooleanin(ServiceController.Mode... modes) Determine if this mode is one of the given modes.static ServiceController.ModeReturns the enum constant of this class with the specified name.static ServiceController.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REMOVE
Remove this service and all of its dependents. -
NEVER
Do not start; in addition, ignore demands from dependents. -
ON_DEMAND
Only come up if all dependencies are satisfied and at least one dependent demands to start. -
LAZY
Only come up if all dependencies are satisfied and at least one dependent demands to start. Once in theUPstate, it will remain that way regardless of demands from dependents. -
PASSIVE
Come up automatically as soon as all dependencies are satisfied. -
ACTIVE
Demand to start, recursively demanding dependencies. This is the default mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
in
Determine if this mode is one of the given modes.- Parameters:
modes- the modes to check- Returns:
trueif this mode is in the set;falseotherwise
-