Package io.wcm.wcm.commons.bundleinfo
Enum Class BundleState
- All Implemented Interfaces:
Serializable,Comparable<BundleState>,java.lang.constant.Constable
Bundle state
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis bundle is now running.Bundle is a fragment bundleThis bundle is installed but not yet resolved.This bundle is resolved and is able to be started.This bundle is in the process of starting.This bundle is in the process of stopping.This bundle is uninstalled and may not be used.State is unknown -
Method Summary
Modifier and TypeMethodDescriptionintstatic @NotNull BundleStatevalueOf(int stateValue) Returns the enum constant of this class with the specified name.static BundleStateReturns the enum constant of this class with the specified name.static BundleState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNINSTALLED
This bundle is uninstalled and may not be used. -
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. -
ACTIVE
This bundle is now running. -
FRAGMENT
Bundle is a fragment bundle -
UNKNOWN
State is unknown
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getStateValue
public int getStateValue()- Returns:
- OSGi framework state value
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-