org.eclipse.osgi.service.resolver
Interface NativeCodeSpecification

All Superinterfaces:
java.lang.Cloneable, VersionConstraint

public interface NativeCodeSpecification
extends VersionConstraint

This class represents a native code specification. A native code specification is different from other specification constraints which typically are resolved against suppliers provided by other bundles. A native code specification supplies it own suppliers which are matched against the platform properties at resolve time and the supplier with the best match is selected.

This interface is not intended to be implemented by clients. The StateObjectFactory should be used to construct instances.

Since:
3.4

Method Summary
 NativeCodeDescription[] getPossibleSuppliers()
          Returns the list of possible suppliers to this native code specification.
 boolean isOptional()
          Returns whether or not this native code specification is optional.
 
Methods inherited from interface org.eclipse.osgi.service.resolver.VersionConstraint
getBundle, getName, getSupplier, getVersionRange, isResolved, isSatisfiedBy
 

Method Detail

getPossibleSuppliers

NativeCodeDescription[] getPossibleSuppliers()
Returns the list of possible suppliers to this native code specification. When this native code specification is resolved one of the possible suppliers will be selected and returned by VersionConstraint.getSupplier().

Returns:
the list of possible suppliers.

isOptional

boolean isOptional()
Returns whether or not this native code specification is optional.

Returns:
whether this specification is optional