public enum StartStopConfig extends java.lang.Enum<StartStopConfig>
StartStoppable
is required to
have a configuration property "startStop" of this type that overrides the
logic of the StartStoppable.setStartStop(StartStop)
method:
@AttributeDefinition(name = "Start/stop behaviour?", description = "Should this Component be forced to start or stop?") StartStopConfig startStop() default StartStopConfig.AUTO;
START
-> always start
STOP
-> always stop
AUTO
-> start
StartStop.UNDEFINED
and wait for a call to
StartStoppable.setStartStop(StartStop)
Enum Constant and Description |
---|
AUTO
Wait for runtime START/STOP command via
StartStoppable.setStartStop(StartStop) |
START
Force START the Component.
|
STOP
Force STOP the Component.
|
Modifier and Type | Method and Description |
---|---|
static StartStopConfig |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StartStopConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StartStopConfig START
public static final StartStopConfig STOP
public static final StartStopConfig AUTO
StartStoppable.setStartStop(StartStop)
public static StartStopConfig[] values()
for (StartStopConfig c : StartStopConfig.values()) System.out.println(c);
public static StartStopConfig valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null