Class SimpleHostedCapability

java.lang.Object
org.apache.felix.resolver.SimpleHostedCapability
All Implemented Interfaces:
org.osgi.resource.Capability, HostedCapability

class SimpleHostedCapability extends Object implements HostedCapability
  • Field Details

    • m_host

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

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

    • SimpleHostedCapability

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

    • 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 String getNamespace()
      Specified by:
      getNamespace in interface org.osgi.resource.Capability
    • getDirectives

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

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