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 BundleCapabilitygetCapability()Returns theBundleCapabilityfor this wire.BundleRevisiongetProvider()Returns the resource providing thecapability.BundleWiringgetProviderWiring()Returns the bundle wiringprovidingthecapability.BundleRequirementgetRequirement()Return theBundleRequirementfor this wire.BundleRevisiongetRequirer()Returns the resource whorequiresthecapability.BundleWiringgetRequirerWiring()Returns the bundle wiring whorequiresthecapability.java.lang.StringtoString()
-
-
-
Constructor Detail
-
BundleWireImpl
public BundleWireImpl(BundleRevision requirer, BundleRequirement req, BundleRevision provider, BundleCapability cap)
-
-
Method Detail
-
getRequirer
public BundleRevision getRequirer()
Description copied from interface:BundleWireReturns the resource whorequiresthecapability.The returned resource may differ from the resource referenced by the
requirement.This method returns the same value as
BundleWire.getRequirerWiring().getRevision().- Specified by:
getRequirerin interfaceBundleWire- Specified by:
getRequirerin interfaceWire- Returns:
- The resource who requires the capability.
-
getRequirerWiring
public BundleWiring getRequirerWiring()
Description copied from interface:BundleWireReturns the bundle wiring whorequiresthecapability.The bundle revision referenced by the returned bundle wiring may differ from the bundle revision referenced by the
requirement.- Specified by:
getRequirerWiringin interfaceBundleWire- 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.
-
getRequirement
public BundleRequirement getRequirement()
Description copied from interface:BundleWireReturn theBundleRequirementfor this wire.- Specified by:
getRequirementin interfaceBundleWire- Specified by:
getRequirementin interfaceWire- Returns:
- The
BundleRequirementfor this wire.
-
getProvider
public BundleRevision getProvider()
Description copied from interface:BundleWireReturns 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:
getProviderin interfaceBundleWire- Specified by:
getProviderin interfaceWire- Returns:
- The resource providing the capability.
-
getProviderWiring
public BundleWiring getProviderWiring()
Description copied from interface:BundleWireReturns the bundle wiringprovidingthecapability.The bundle revision referenced by the returned bundle wiring may differ from the bundle revision referenced by the
capability.- Specified by:
getProviderWiringin interfaceBundleWire- Returns:
- The bundle wiring providing the capability. If the bundle wiring
providing the capability is not
in use,nullwill be returned.
-
getCapability
public BundleCapability getCapability()
Description copied from interface:BundleWireReturns theBundleCapabilityfor this wire.- Specified by:
getCapabilityin interfaceBundleWire- Specified by:
getCapabilityin interfaceWire- Returns:
- The
BundleCapabilityfor this wire.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-