@ProviderType public enum BundleState extends Enum<BundleState>
Enum Constant and Description |
---|
ACTIVE
This bundle is now running.
|
FRAGMENT
Bundle is a fragment bundle
|
INSTALLED
This bundle is installed but not yet resolved.
|
RESOLVED
This bundle is resolved and is able to be started.
|
STARTING
This bundle is in the process of starting.
|
STOPPING
This bundle is in the process of stopping.
|
UNINSTALLED
This bundle is uninstalled and may not be used.
|
UNKNOWN
State is unknown
|
Modifier and Type | Method and Description |
---|---|
int |
getStateValue() |
static @NotNull BundleState |
valueOf(int stateValue) |
static BundleState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BundleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BundleState UNINSTALLED
public static final BundleState INSTALLED
public static final BundleState RESOLVED
public static final BundleState STARTING
public static final BundleState STOPPING
public static final BundleState ACTIVE
public static final BundleState FRAGMENT
public static final BundleState UNKNOWN
public static BundleState[] values()
for (BundleState c : BundleState.values()) System.out.println(c);
public static BundleState 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 int getStateValue()
@NotNull public static @NotNull BundleState valueOf(int stateValue)
stateValue
- OSGi framework state valueCopyright © 2014–2019 wcm.io. All rights reserved.