public class BundleWireImpl extends Object implements BundleWire
| Constructor and Description |
|---|
BundleWireImpl(BundleRevision requirer,
BundleRequirement req,
BundleRevision provider,
BundleCapability cap) |
| Modifier and Type | Method and Description |
|---|---|
BundleCapability |
getCapability()
Returns the
BundleCapability for this wire. |
BundleRevision |
getProvider()
Returns the resource providing the
capability. |
BundleWiring |
getProviderWiring()
Returns the bundle wiring
providing the capability. |
BundleRequirement |
getRequirement()
Return the
BundleRequirement for this wire. |
BundleRevision |
getRequirer()
Returns the resource who
requires the
capability. |
BundleWiring |
getRequirerWiring()
Returns the bundle wiring who
requires the
capability. |
String |
toString() |
public BundleWireImpl(BundleRevision requirer, BundleRequirement req, BundleRevision provider, BundleCapability cap)
public BundleRevision getRequirer()
BundleWirerequires the
capability.
The returned resource may differ from the resource referenced by the
requirement.
This method returns the same value as BundleWire.getRequirerWiring().
getRevision().
getRequirer in interface BundleWiregetRequirer in interface Wirepublic BundleWiring getRequirerWiring()
BundleWirerequires the
capability.
The bundle revision referenced by the returned bundle wiring may differ
from the bundle revision referenced by the requirement.
getRequirerWiring in interface BundleWirein use, null will be
returned.public BundleRequirement getRequirement()
BundleWireBundleRequirement for this wire.getRequirement in interface BundleWiregetRequirement in interface WireBundleRequirement for this wire.public BundleRevision getProvider()
BundleWirecapability.
The returned resource may differ from the resource referenced by the
capability.
This method returns the same value as BundleWire.getProviderWiring().
getRevision().
getProvider in interface BundleWiregetProvider in interface Wirepublic BundleWiring getProviderWiring()
BundleWireproviding the capability.
The bundle revision referenced by the returned bundle wiring may differ
from the bundle revision referenced by the capability.
getProviderWiring in interface BundleWirein
use, null will be returned.public BundleCapability getCapability()
BundleWireBundleCapability for this wire.getCapability in interface BundleWiregetCapability in interface WireBundleCapability for this wire.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.