Package io.wcm.wcm.commons.bundleinfo
Enum BundleState
- java.lang.Object
-
- java.lang.Enum<BundleState>
-
- io.wcm.wcm.commons.bundleinfo.BundleState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BundleState>
@ProviderType public enum BundleState extends java.lang.Enum<BundleState>
Bundle state
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
This bundle is now running.FRAGMENT
Bundle is a fragment bundleINSTALLED
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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStateValue()
static @NotNull BundleState
valueOf(int stateValue)
Returns the enum constant of this type with the specified name.static BundleState
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
UNINSTALLED
public static final BundleState UNINSTALLED
This bundle is uninstalled and may not be used.
-
INSTALLED
public static final BundleState INSTALLED
This bundle is installed but not yet resolved.
-
RESOLVED
public static final BundleState RESOLVED
This bundle is resolved and is able to be started.
-
STARTING
public static final BundleState STARTING
This bundle is in the process of starting.
-
STOPPING
public static final BundleState STOPPING
This bundle is in the process of stopping.
-
ACTIVE
public static final BundleState ACTIVE
This bundle is now running.
-
FRAGMENT
public static final BundleState FRAGMENT
Bundle is a fragment bundle
-
UNKNOWN
public static final BundleState UNKNOWN
State is unknown
-
-
Method Detail
-
values
public static BundleState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BundleState c : BundleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BundleState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getStateValue
public int getStateValue()
- Returns:
- OSGi framework state value
-
valueOf
@NotNull public static @NotNull BundleState valueOf(int stateValue)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
stateValue
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-