Class OSGiCapabilityAdapter

  • All Implemented Interfaces:
    Capability

    public class OSGiCapabilityAdapter
    extends java.lang.Object
    implements Capability
    • Constructor Detail

      • OSGiCapabilityAdapter

        public OSGiCapabilityAdapter​(org.osgi.resource.Capability capability)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getName

        public java.lang.String getName()
        Description copied from interface: Capability
        Return the name of the capability.
        Specified by:
        getName in interface Capability
      • getPropertiesAsMap

        public java.util.Map<java.lang.String,​java.lang.Object> getPropertiesAsMap()
        Description copied from interface: Capability
        Return the map of properties.
        Specified by:
        getPropertiesAsMap in interface Capability
        Returns:
        a Map
      • getDirectives

        public java.util.Map<java.lang.String,​java.lang.String> getDirectives()
        Description copied from interface: Capability
        Return the directives of this capability. The returned map can not be modified.
        Specified by:
        getDirectives in interface Capability
        Returns:
        a Map of directives or an empty map there are no directives.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object