Enum Class ApplicationEvent.Type
- All Implemented Interfaces:
Serializable
,Comparable<ApplicationEvent.Type>
,java.lang.constant.Constable
- Enclosing interface:
- ApplicationEvent
The type of the event that identifies on which lifecycle change the event is triggered.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApplication has been destroyed (stopped).Initialization ofjersey application
is finished but the server might not be started and ready yet to serve requests (this will be indicated by theINITIALIZATION_FINISHED
event).Initialization of the application has finished, server is started and application is ready to handle requests now.Initialization of the application has started.The application reload is finished. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationEvent.Type
Returns the enum constant of this class with the specified name.static ApplicationEvent.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIALIZATION_START
Initialization of the application has started. In this point no all the event properties are initialized yet. -
INITIALIZATION_APP_FINISHED
Initialization ofjersey application
is finished but the server might not be started and ready yet to serve requests (this will be indicated by theINITIALIZATION_FINISHED
event). This event indicates only that the environment is ready (all providers are registered, application is configured, etc.).- Since:
- 2.5
-
INITIALIZATION_FINISHED
Initialization of the application has finished, server is started and application is ready to handle requests now. -
DESTROY_FINISHED
Application has been destroyed (stopped). In this point the application cannot process any new requests. -
RELOAD_FINISHED
The application reload is finished. The reload can be invoked byContainer.reload()
method. When this event is triggered the reload is completely finished, which means that the new application is initialized (appropriate events are called) and new reloaded application is ready to server requests.
-
-
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
-