public static enum ReasonException.Reason extends Enum<ReasonException.Reason>
Enum Constant and Description |
---|
DynamicImport
Represents an unresolved package referenced by
Dynamic-ImportPackage . |
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. |
MissingRequirement
Represents the scenario where a requirement could not be resolved.
|
UseConstraint
Represents a failure in the use constraints of a bundle.
|
Modifier and Type | Method and Description |
---|---|
static ReasonException.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReasonException.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReasonException.Reason DynamicImport
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.
public static final ReasonException.Reason FragmentNotSelected
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.
public static final ReasonException.Reason MissingRequirement
ResolutionException.getUnresolvedRequirements()
will return
a collection containing a single requirement that didn't resolve.
This reason may have a transitive cause.
public static final ReasonException.Reason UseConstraint
ResolutionException.getUnresolvedRequirements()
will return
a collection containing a single requirement to blame for the use constraint
violation.
This reason has no a transitive cause.
public static ReasonException.Reason[] values()
for (ReasonException.Reason c : ReasonException.Reason.values()) System.out.println(c);
public static ReasonException.Reason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2018 The Apache Software Foundation. All rights reserved.