Package org.jboss.weld
Enum ContainerState
- All Implemented Interfaces:
Serializable,Comparable<ContainerState>,java.lang.constant.Constable
Application container instance state
- Author:
- pmuir
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe container has started and beans have been deployedThe container has finished bean discovery.The container finished initialization and is serving requestsThe container has been shutdownThe container is startingThe container has not been startedThe deployment has been validated -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the container is available for usestatic ContainerStateReturns the enum constant of this type with the specified name.static ContainerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STOPPED
The container has not been started -
STARTING
The container is starting -
DISCOVERED
The container has finished bean discovery. Beans are not fully initialized yet. -
DEPLOYED
The container has started and beans have been deployed -
VALIDATED
The deployment has been validated -
INITIALIZED
The container finished initialization and is serving requests -
SHUTDOWN
The container has been shutdown
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isAvailable
public boolean isAvailable()Whether the container is available for use- Returns:
-