Enum Class BundleState

java.lang.Object
java.lang.Enum<BundleState>
io.wcm.wcm.commons.bundleinfo.BundleState
All Implemented Interfaces:
Serializable, Comparable<BundleState>, java.lang.constant.Constable

@ProviderType public enum BundleState extends Enum<BundleState>
Bundle state
  • Enum Constant Details

    • 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 Details

    • values

      public static BundleState[] 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

      public static BundleState valueOf(String name)
      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 name
      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 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 name
      NullPointerException - if the argument is null