Package org.osgi.service.resolver
Interface HostedCapability
-
- All Superinterfaces:
org.osgi.resource.Capability
- All Known Implementing Classes:
SimpleHostedCapability,WrappedCapability
public interface HostedCapability extends org.osgi.resource.CapabilityA capability hosted by a resource.A HostedCapability is a Capability where the
getResource()method returns a Resource that hosts this Capability instead of declaring it. This is necessary for cases where the declaring Resource of a Capability does not match the runtime state. For example, this is the case for fragments attached to a host. Most fragment declared capabilities and requirements become hosted by the host resource. Since a fragment can attach to multiple hosts, a single capability can actually be hosted multiple times.- Version:
- $Id: db698baa07e2ee8b5467871239adb5f0806dc183 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.osgi.resource.CapabilitygetDeclaredCapability()Return the Capability hosted by the Resource.org.osgi.resource.ResourcegetResource()Return the Resource that hosts this Capability.
-
-
-
Method Detail
-
getResource
org.osgi.resource.Resource getResource()
Return the Resource that hosts this Capability.- Specified by:
getResourcein interfaceorg.osgi.resource.Capability- Returns:
- The Resource that hosts this Capability.
-
getDeclaredCapability
org.osgi.resource.Capability getDeclaredCapability()
Return the Capability hosted by the Resource.- Returns:
- The Capability hosted by the Resource.
-
-