Enum ReasonException.Reason

java.lang.Object
java.lang.Enum<ReasonException.Reason>
org.apache.felix.resolver.reason.ReasonException.Reason
All Implemented Interfaces:
Serializable, Comparable<ReasonException.Reason>
Enclosing class:
ReasonException

public static enum ReasonException.Reason extends Enum<ReasonException.Reason>
The reasons for resolution failure.
  • Enum Constant Details

    • DynamicImport

      public static final ReasonException.Reason DynamicImport
      Represents an unresolved package referenced by Dynamic-ImportPackage.

      ResolutionException.getUnresolvedRequirements() will return a collection containing the single osgi.wiring.package;resolution:=dynamic requirement which failed to resolve.

      This reason has no a transitive cause.

    • FragmentNotSelected

      public static final ReasonException.Reason FragmentNotSelected
      Represents the scenario where a fragment matches a host but is not selected because another fragment with the same Bundle-SymbolicName already matched, usually a fragment of a higher version.

      ResolutionException.getUnresolvedRequirements() will return a collection containing the single osgi.wiring.host requirement of the fragment.

      This reason has no a transitive cause.

    • MissingRequirement

      public static final ReasonException.Reason MissingRequirement
      Represents the scenario where a requirement could not be resolved.

      ResolutionException.getUnresolvedRequirements() will return a collection containing a single requirement that didn't resolve.

      This reason may have a transitive cause.

    • UseConstraint

      public static final ReasonException.Reason UseConstraint
      Represents a failure in the use constraints of a bundle.

      ResolutionException.getUnresolvedRequirements() will return a collection containing a single requirement to blame for the use constraint violation.

      This reason has no a transitive cause.

  • Constructor Details

    • Reason

      private Reason()
  • Method Details

    • values

      public static ReasonException.Reason[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ReasonException.Reason 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