Class UnresolvableNamespace

java.lang.Object
org.osgi.resource.Namespace
org.osgi.namespace.unresolvable.UnresolvableNamespace

public final class UnresolvableNamespace extends org.osgi.resource.Namespace
Unresolvable Capability and Requirement Namespace.

This class defines the names for the attributes and directives for this namespace.

This class defines the names for the attributes and directives for this namespace. All unspecified capability attributes are of type String and are used as arbitrary matching attributes for the capability. The values associated with the specified directive and attribute keys are of type String, unless otherwise indicated.

Author:
$Id: 22f6e55e3a9acad5e8934b02c3dac1ab27a9ea92 $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    An unresolvable filter expression.
    static final String
    Namespace name for "unresolvable" capabilities and requirements.

    Fields inherited from class org.osgi.resource.Namespace

    CAPABILITY_EFFECTIVE_DIRECTIVE, CAPABILITY_USES_DIRECTIVE, CARDINALITY_MULTIPLE, CARDINALITY_SINGLE, EFFECTIVE_ACTIVE, EFFECTIVE_RESOLVE, REQUIREMENT_CARDINALITY_DIRECTIVE, REQUIREMENT_EFFECTIVE_DIRECTIVE, REQUIREMENT_FILTER_DIRECTIVE, REQUIREMENT_RESOLUTION_DIRECTIVE, RESOLUTION_MANDATORY, RESOLUTION_OPTIONAL
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • UNRESOLVABLE_NAMESPACE

      public static final String UNRESOLVABLE_NAMESPACE
      Namespace name for "unresolvable" capabilities and requirements.

      This is typically used as follows to prevent a bundle from being resolvable.

       Require-Capability: osgi.unresolvable;
         filter:="(&(must.not.resolve=*)(!(must.not.resolve=*)))"
       
      See Also:
    • UNRESOLVABLE_FILTER

      public static final String UNRESOLVABLE_FILTER
      An unresolvable filter expression.

      This can be used as the filter expression for an UnresolvableNamespace requirement.

       @Requirement(namespace = UnresolvableNamespace.UNRESOLVABLE_NAMESPACE,
                    filter = UnresolvableNamespace.UNRESOLVABLE_FILTER)
       
      See Also: