Package org.osgi.framework.wiring
Interface BundleWire
-
- All Superinterfaces:
Wire
@ProviderType public interface BundleWire extends Wire
A wire connecting aBundleCapabilityto aBundleRequirement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BundleCapabilitygetCapability()Returns theBundleCapabilityfor this wire.BundleRevisiongetProvider()Returns the resource providing thecapability.BundleWiringgetProviderWiring()Returns the bundle wiringprovidingthecapability.BundleRequirementgetRequirement()Return theBundleRequirementfor this wire.BundleRevisiongetRequirer()Returns the resource whorequiresthecapability.BundleWiringgetRequirerWiring()Returns the bundle wiring whorequiresthecapability.
-
-
-
Method Detail
-
getCapability
BundleCapability getCapability()
Returns theBundleCapabilityfor this wire.- Specified by:
getCapabilityin interfaceWire- Returns:
- The
BundleCapabilityfor this wire.
-
getRequirement
BundleRequirement getRequirement()
Return theBundleRequirementfor this wire.- Specified by:
getRequirementin interfaceWire- Returns:
- The
BundleRequirementfor this wire.
-
getProviderWiring
BundleWiring getProviderWiring()
Returns the bundle wiringprovidingthecapability.The bundle revision referenced by the returned bundle wiring may differ from the bundle revision referenced by the
capability.- Returns:
- The bundle wiring providing the capability. If the bundle wiring
providing the capability is not
in use,nullwill be returned.
-
getRequirerWiring
BundleWiring getRequirerWiring()
Returns the bundle wiring whorequiresthecapability.The bundle revision referenced by the returned bundle wiring may differ from the bundle revision referenced by the
requirement.- Returns:
- The bundle wiring whose requirement is wired to the capability.
If the bundle wiring requiring the capability is not
in use,nullwill be returned.
-
getProvider
BundleRevision getProvider()
Returns the resource providing thecapability.The returned resource may differ from the resource referenced by the
capability.This method returns the same value as
getProviderWiring().getRevision().- Specified by:
getProviderin interfaceWire- Returns:
- The resource providing the capability.
- Since:
- 1.1
-
getRequirer
BundleRevision getRequirer()
Returns the resource whorequiresthecapability.The returned resource may differ from the resource referenced by the
requirement.This method returns the same value as
getRequirerWiring().getRevision().- Specified by:
getRequirerin interfaceWire- Returns:
- The resource who requires the capability.
- Since:
- 1.1
-
-