Package org.osgi.framework.wiring
Interface BundleWire
-
- All Superinterfaces:
Wire
- All Known Implementing Classes:
BundleWireImpl
@ProviderType public interface BundleWire extends Wire
A wire connecting aBundleCapability
to aBundleRequirement
.- Author:
- $Id: f51255c8510d4b513dc2bb70c2274d9c51e9b9e5 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BundleCapability
getCapability()
Returns theBundleCapability
for this wire.BundleRevision
getProvider()
Returns the resource providing thecapability
.BundleWiring
getProviderWiring()
Returns the bundle wiringproviding
thecapability
.BundleRequirement
getRequirement()
Return theBundleRequirement
for this wire.BundleRevision
getRequirer()
Returns the resource whorequires
thecapability
.BundleWiring
getRequirerWiring()
Returns the bundle wiring whorequires
thecapability
.
-
-
-
Method Detail
-
getCapability
BundleCapability getCapability()
Returns theBundleCapability
for this wire.- Specified by:
getCapability
in interfaceWire
- Returns:
- The
BundleCapability
for this wire.
-
getRequirement
BundleRequirement getRequirement()
Return theBundleRequirement
for this wire.- Specified by:
getRequirement
in interfaceWire
- Returns:
- The
BundleRequirement
for this wire.
-
getProviderWiring
BundleWiring getProviderWiring()
Returns the bundle wiringproviding
thecapability
.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
,null
will be returned.
-
getRequirerWiring
BundleWiring getRequirerWiring()
Returns the bundle wiring whorequires
thecapability
.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
,null
will 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:
getProvider
in interfaceWire
- Returns:
- The resource providing the capability.
- Since:
- 1.1
-
getRequirer
BundleRevision getRequirer()
Returns the resource whorequires
thecapability
.The returned resource may differ from the resource referenced by the
requirement
.This method returns the same value as
getRequirerWiring()
.getRevision()
.- Specified by:
getRequirer
in interfaceWire
- Returns:
- The resource who requires the capability.
- Since:
- 1.1
-
-