Package org.osgi.framework.wiring
Interface BundleWire
- All Superinterfaces:
Wire
- All Known Implementing Classes:
BundleWireImpl
A wire connecting a
BundleCapability to a BundleRequirement.- Author:
- $Id: f51255c8510d4b513dc2bb70c2274d9c51e9b9e5 $
-
Method Summary
Modifier and TypeMethodDescriptionReturns theBundleCapabilityfor this wire.Returns the resource providing thecapability.Returns the bundle wiringprovidingthecapability.Return theBundleRequirementfor this wire.Returns the resource whorequiresthecapability.Returns the bundle wiring whorequiresthecapability.
-
Method Details
-
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
-