@ParametersAreNonnullByDefault public enum ComponentContainerState extends Enum<ComponentContainerState>
com.atlassian.jira.component.pico.ComponentManager
Enum Constant and Description |
---|
COMPONENTS_INSTANTIATED
All components have been instantiated.
|
COMPONENTS_REGISTERED
All components registered with the DI container including plugin components and plugin system has started.
|
CONTAINER_INITIALISED
Not registered, plugins not started, but container is initialised
|
NOT_STARTED
Not registered, plugins haven't started
|
PLUGIN_SYSTEM_STARTED
Not registered, plugins haven't started
|
STARTED
All components registered with the DI container including plugin components and plugin system has started.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessageKey()
Returns the i18n message key for a brief explanation of what the state means.
|
int |
getPercentage()
Returns the percentage of the way through the startup process this state can be considered to be.
|
boolean |
isComponentsInstantiated()
Have the components been instantiated by the full container.
|
boolean |
isComponentsRegistered()
Have the components been registered with the DI container including plugin components.
|
boolean |
isContainerInitialised()
Has the DI container been initialised.
|
boolean |
isPluginSystemStarted()
Indicates whether the plugin system has been started.
|
boolean |
isStarted()
Indicates whether the
ComponentManager has been started. |
boolean |
isValidNewState(ComponentContainerState newState)
Indicates whether the given state is a valid next state from this state.
|
static ComponentContainerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentContainerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentContainerState NOT_STARTED
public static final ComponentContainerState CONTAINER_INITIALISED
public static final ComponentContainerState PLUGIN_SYSTEM_STARTED
public static final ComponentContainerState COMPONENTS_REGISTERED
public static final ComponentContainerState COMPONENTS_INSTANTIATED
public static final ComponentContainerState STARTED
public static ComponentContainerState[] values()
for (ComponentContainerState c : ComponentContainerState.values()) System.out.println(c);
public static ComponentContainerState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isComponentsInstantiated()
public boolean isComponentsRegistered()
public boolean isPluginSystemStarted()
public boolean isStarted()
ComponentManager
has been started.public boolean isContainerInitialised()
public String getMessageKey()
JiraStartupPageSupport.properties
.
They cannot come from any other source.public int getPercentage()
public boolean isValidNewState(ComponentContainerState newState)
newState
- the new state to validateCopyright © 2002-2024 Atlassian. All Rights Reserved.