Enum CommandPhase
- java.lang.Object
-
- java.lang.Enum<CommandPhase>
-
- org.jboss.windup.bootstrap.commands.CommandPhase
-
- All Implemented Interfaces:
Serializable,Comparable<CommandPhase>
public enum CommandPhase extends Enum<CommandPhase>
A phase in theBootstraplife-cycle.- Author:
- Lincoln Baxter, III
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATIONFurnace/Windup is being configured.EXECUTIONWindup is executing.POST_CONFIGURATIONFurnace/Windup is configured but not started.POST_EXECUTIONWindup has finished executing.PRE_CONFIGURATIONBefore Furnace/Windup configuration has begun.PRE_EXECUTIONFurnace is started, Windup has not been executed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandPhasevalueOf(String name)Returns the enum constant of this type with the specified name.static CommandPhase[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRE_CONFIGURATION
public static final CommandPhase PRE_CONFIGURATION
Before Furnace/Windup configuration has begun.
-
CONFIGURATION
public static final CommandPhase CONFIGURATION
Furnace/Windup is being configured.
-
POST_CONFIGURATION
public static final CommandPhase POST_CONFIGURATION
Furnace/Windup is configured but not started.
-
PRE_EXECUTION
public static final CommandPhase PRE_EXECUTION
Furnace is started, Windup has not been executed.
-
EXECUTION
public static final CommandPhase EXECUTION
Windup is executing.
-
POST_EXECUTION
public static final CommandPhase POST_EXECUTION
Windup has finished executing.
-
-
Method Detail
-
values
public static CommandPhase[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommandPhase c : CommandPhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandPhase valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-