Enum BundleState

    • 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​(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:
        IllegalArgumentException - if this enum type 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 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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null