Class SimpleHostedCapability

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.osgi.resource.Capability m_cap  
      private org.osgi.resource.Resource m_host  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleHostedCapability​(org.osgi.resource.Resource host, org.osgi.resource.Capability cap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getAttributes()  
      org.osgi.resource.Capability getDeclaredCapability()
      Return the Capability hosted by the Resource.
      java.util.Map<java.lang.String,​java.lang.String> getDirectives()  
      java.lang.String getNamespace()  
      org.osgi.resource.Resource getResource()
      Return the Resource that hosts this Capability.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.osgi.resource.Capability

        equals, hashCode
    • Field Detail

      • m_host

        private final org.osgi.resource.Resource m_host
      • m_cap

        private final org.osgi.resource.Capability m_cap
    • Constructor Detail

      • SimpleHostedCapability

        SimpleHostedCapability​(org.osgi.resource.Resource host,
                               org.osgi.resource.Capability cap)
    • Method Detail

      • getResource

        public org.osgi.resource.Resource getResource()
        Description copied from interface: HostedCapability
        Return the Resource that hosts this Capability.
        Specified by:
        getResource in interface org.osgi.resource.Capability
        Specified by:
        getResource in interface HostedCapability
        Returns:
        The Resource that hosts this Capability.
      • getDeclaredCapability

        public org.osgi.resource.Capability getDeclaredCapability()
        Description copied from interface: HostedCapability
        Return the Capability hosted by the Resource.
        Specified by:
        getDeclaredCapability in interface HostedCapability
        Returns:
        The Capability hosted by the Resource.
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.osgi.resource.Capability
      • getDirectives

        public java.util.Map<java.lang.String,​java.lang.String> getDirectives()
        Specified by:
        getDirectives in interface org.osgi.resource.Capability
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Specified by:
        getAttributes in interface org.osgi.resource.Capability