Package com.atlassian.jira.component
Enum Class ComponentContainerState
- All Implemented Interfaces:
Serializable,Comparable<ComponentContainerState>,Constable
@ParametersAreNonnullByDefault
public enum ComponentContainerState
extends Enum<ComponentContainerState>
The state of the component container.
- Since:
- 9.7 was an interface inside
com.atlassian.jira.component.spring.ComponentManager
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll components have been instantiated.All components registered with the DI container including plugin components and plugin system has started.Not registered, plugins not started, but container is initialisedNot registered, plugins haven't startedNot registered, plugins haven't startedAll components registered with the DI container including plugin components and plugin system has started. -
Method Summary
Modifier and TypeMethodDescriptionReturns the i18n message key for a brief explanation of what the state means.intReturns the percentage of the way through the startup process this state can be considered to be.booleanHave the components been instantiated by the full container.booleanHave the components been registered with the DI container including plugin components.booleanHas the DI container been initialised.booleanIndicates whether the plugin system has been started.booleanIndicates whether theComponentManagerhas been started.booleanisValidNewState(ComponentContainerState newState) Indicates whether the given state is a valid next state from this state.static ComponentContainerStateReturns the enum constant of this class with the specified name.static ComponentContainerState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_STARTED
Not registered, plugins haven't started -
CONTAINER_INITIALISED
Not registered, plugins not started, but container is initialised -
PLUGIN_SYSTEM_STARTED
Not registered, plugins haven't started -
COMPONENTS_REGISTERED
All components registered with the DI container including plugin components and plugin system has started. -
COMPONENTS_INSTANTIATED
All components have been instantiated.- Since:
- 7.2.5
-
STARTED
All components registered with the DI container including plugin components and plugin system has started.
-
-
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
-
isComponentsInstantiated
public boolean isComponentsInstantiated()Have the components been instantiated by the full container.- Returns:
- true if components have been instantiated by the full container.
-
isComponentsRegistered
public boolean isComponentsRegistered()Have the components been registered with the DI container including plugin components.- Returns:
- true if components have been registered.
-
isPluginSystemStarted
public boolean isPluginSystemStarted()Indicates whether the plugin system has been started.- Returns:
- true if the plugin system has started.
-
isStarted
public boolean isStarted()Indicates whether theComponentManagerhas been started.- Returns:
- true if the component manager has started.
-
isContainerInitialised
public boolean isContainerInitialised()Has the DI container been initialised.- Returns:
- true if the DI container is set up
-
getMessageKey
Returns the i18n message key for a brief explanation of what the state means. Note that these translations *must* live inJiraStartupPageSupport.properties. They cannot come from any other source.- Returns:
- a message key for resolving a brief description of this state
-
getPercentage
public int getPercentage()Returns the percentage of the way through the startup process this state can be considered to be.- Returns:
- the startup progress percentage
-
isValidNewState
Indicates whether the given state is a valid next state from this state.- Parameters:
newState- the new state to validate- Returns:
- see above
-