Class BundleWireImpl
- java.lang.Object
-
- org.apache.felix.framework.wiring.BundleWireImpl
-
- All Implemented Interfaces:
BundleWire
,Wire
public class BundleWireImpl extends java.lang.Object implements BundleWire
-
-
Constructor Summary
Constructors Constructor Description BundleWireImpl(BundleRevision requirer, BundleRequirement req, BundleRevision provider, BundleCapability cap)
-
Method Summary
All Methods Instance Methods Concrete 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
.java.lang.String
toString()
-
-
-
Constructor Detail
-
BundleWireImpl
public BundleWireImpl(BundleRevision requirer, BundleRequirement req, BundleRevision provider, BundleCapability cap)
-
-
Method Detail
-
getRequirer
public BundleRevision getRequirer()
Description copied from interface:BundleWire
Returns the resource whorequires
thecapability
.The returned resource may differ from the resource referenced by the
requirement
.This method returns the same value as
BundleWire.getRequirerWiring()
.getRevision()
.- Specified by:
getRequirer
in interfaceBundleWire
- Specified by:
getRequirer
in interfaceWire
- Returns:
- The resource who requires the capability.
-
getRequirerWiring
public BundleWiring getRequirerWiring()
Description copied from interface:BundleWire
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
.- Specified by:
getRequirerWiring
in interfaceBundleWire
- 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.
-
getRequirement
public BundleRequirement getRequirement()
Description copied from interface:BundleWire
Return theBundleRequirement
for this wire.- Specified by:
getRequirement
in interfaceBundleWire
- Specified by:
getRequirement
in interfaceWire
- Returns:
- The
BundleRequirement
for this wire.
-
getProvider
public BundleRevision getProvider()
Description copied from interface:BundleWire
Returns the resource providing thecapability
.The returned resource may differ from the resource referenced by the
capability
.This method returns the same value as
BundleWire.getProviderWiring()
.getRevision()
.- Specified by:
getProvider
in interfaceBundleWire
- Specified by:
getProvider
in interfaceWire
- Returns:
- The resource providing the capability.
-
getProviderWiring
public BundleWiring getProviderWiring()
Description copied from interface:BundleWire
Returns the bundle wiringproviding
thecapability
.The bundle revision referenced by the returned bundle wiring may differ from the bundle revision referenced by the
capability
.- Specified by:
getProviderWiring
in interfaceBundleWire
- Returns:
- The bundle wiring providing the capability. If the bundle wiring
providing the capability is not
in use
,null
will be returned.
-
getCapability
public BundleCapability getCapability()
Description copied from interface:BundleWire
Returns theBundleCapability
for this wire.- Specified by:
getCapability
in interfaceBundleWire
- Specified by:
getCapability
in interfaceWire
- Returns:
- The
BundleCapability
for this wire.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-