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()
BundleWire
requires
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 BundleWire
getRequirer
in interface Wire
public BundleWiring getRequirerWiring()
BundleWire
requires
the
capability
.
The bundle revision referenced by the returned bundle wiring may differ
from the bundle revision referenced by the requirement
.
getRequirerWiring
in interface BundleWire
in use
, null
will be
returned.public BundleRequirement getRequirement()
BundleWire
BundleRequirement
for this wire.getRequirement
in interface BundleWire
getRequirement
in interface Wire
BundleRequirement
for this wire.public BundleRevision getProvider()
BundleWire
capability
.
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 BundleWire
getProvider
in interface Wire
public BundleWiring getProviderWiring()
BundleWire
providing
the capability
.
The bundle revision referenced by the returned bundle wiring may differ
from the bundle revision referenced by the capability
.
getProviderWiring
in interface BundleWire
in
use
, null
will be returned.public BundleCapability getCapability()
BundleWire
BundleCapability
for this wire.getCapability
in interface BundleWire
getCapability
in interface Wire
BundleCapability
for this wire.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.