Enum Class FeatureExtension.Kind

java.lang.Object
java.lang.Enum<FeatureExtension.Kind>
org.osgi.service.feature.FeatureExtension.Kind
All Implemented Interfaces:
Serializable, Comparable<FeatureExtension.Kind>, Constable
Enclosing interface:
FeatureExtension

public static enum FeatureExtension.Kind extends Enum<FeatureExtension.Kind>
The kind of extension: optional, mandatory or transient.
  • Enum Constant Details

    • MANDATORY

      public static final FeatureExtension.Kind MANDATORY
      A mandatory extension must be processed.
    • OPTIONAL

      public static final FeatureExtension.Kind OPTIONAL
      An optional extension can be ignored if no processor is found.
    • TRANSIENT

      public static final FeatureExtension.Kind TRANSIENT
      A transient extension contains computed information which can be used as a cache to speed up operation.
  • Method Details

    • values

      public static FeatureExtension.Kind[] 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 FeatureExtension.Kind 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