@ParametersAreNonnullByDefault public enum ComponentManagerStateImpl extends Enum<ComponentManagerStateImpl> implements ComponentManager.State
ComponentManager.State
interfaceEnum Constant and Description |
---|
COMPONENTS_INSTANTIATED
All components have been instantiated.
|
COMPONENTS_REGISTERED
All components registered with PICO 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 PICO including plugin components and plugin system has started.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessageKey()
Gets a translation key for getting 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 registered been with PICO including plugin components.
|
boolean |
isContainerInitialised()
Has the PICO container initialised.
|
boolean |
isPluginSystemStarted()
Have the components registered been with PICO including plugin components.
|
boolean |
isStarted()
Has the
ComponentManager started |
boolean |
isValidNewState(ComponentManagerStateImpl newState)
Indicates whether the given state is a valid next state from this state.
|
static ComponentManagerStateImpl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentManagerStateImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentManagerStateImpl NOT_STARTED
public static final ComponentManagerStateImpl CONTAINER_INITIALISED
public static final ComponentManagerStateImpl PLUGIN_SYSTEM_STARTED
public static final ComponentManagerStateImpl COMPONENTS_REGISTERED
public static final ComponentManagerStateImpl COMPONENTS_INSTANTIATED
public static final ComponentManagerStateImpl STARTED
public static ComponentManagerStateImpl[] values()
for (ComponentManagerStateImpl c : ComponentManagerStateImpl.values()) System.out.println(c);
public static ComponentManagerStateImpl 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()
ComponentManager.State
isComponentsInstantiated
in interface ComponentManager.State
public boolean isComponentsRegistered()
ComponentManager.State
isComponentsRegistered
in interface ComponentManager.State
public boolean isPluginSystemStarted()
ComponentManager.State
isPluginSystemStarted
in interface ComponentManager.State
public boolean isStarted()
ComponentManager.State
ComponentManager
startedisStarted
in interface ComponentManager.State
public boolean isContainerInitialised()
ComponentManager.State
isContainerInitialised
in interface ComponentManager.State
public String getMessageKey()
ComponentManager.State
JiraStartupPageSupport.properties
.
They cannot come from any other source.getMessageKey
in interface ComponentManager.State
public int getPercentage()
ComponentManager.State
getPercentage
in interface ComponentManager.State
public boolean isValidNewState(ComponentManagerStateImpl newState)
newState
- the new state to validateCopyright © 2002-2019 Atlassian. All Rights Reserved.