Interface BundleWire
- All Superinterfaces:
org.osgi.resource.Wire
@ProviderType
public interface BundleWire
extends org.osgi.resource.Wire
A wire connecting a
BundleCapability to a BundleRequirement.-
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.Methods inherited from interface org.osgi.resource.Wire
equals, hashCode
-
Method Details
-
getCapability
BundleCapability getCapability()Returns theBundleCapabilityfor this wire.- Specified by:
getCapabilityin interfaceorg.osgi.resource.Wire- Returns:
- The
BundleCapabilityfor this wire.
-
getRequirement
BundleRequirement getRequirement()Return theBundleRequirementfor this wire.- Specified by:
getRequirementin interfaceorg.osgi.resource.Wire- 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 interfaceorg.osgi.resource.Wire- 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 interfaceorg.osgi.resource.Wire- Returns:
- The resource who requires the capability.
- Since:
- 1.1
-