public enum ContextState extends Enum<ContextState>
DependencyWaiterApplicationContextExecutor
.
This enumeration holds the state of an application context at a certain time, beyond the official states such as
STARTED/STOPPED.Enum Constant and Description |
---|
DEPENDENCIES_RESOLVED
Application context has been started and the OSGi dependencies have been resolved.
|
INITIALIZED
Application context has been initialized but not started (i.e.
|
INTERRUPTED
Application context has been interrupted.
|
RESOLVING_DEPENDENCIES
Application context has been started but the OSGi service dependencies haven't been yet resolved.
|
STARTED
Application context has been fully initialized.
|
STOPPED
Application context has been stopped.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDown()
Indicates whether the state is 'down' or not - that is a context which has been either closed or stopped.
|
boolean |
isResolved() |
boolean |
isUnresolved()
Indicates whether the state is unresolved or not.
|
static ContextState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContextState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContextState INITIALIZED
public static final ContextState RESOLVING_DEPENDENCIES
public static final ContextState DEPENDENCIES_RESOLVED
public static final ContextState STARTED
public static final ContextState INTERRUPTED
public static final ContextState STOPPED
INTERRUPTED
state should be used.public static ContextState[] values()
for (ContextState c : ContextState.values()) System.out.println(c);
public static ContextState 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 isDown()
public boolean isUnresolved()
public boolean isResolved()
Copyright © 2006–2013. All rights reserved.