OSGi™ Service Platform
Core Specification

Release 4 Version 4.3

org.osgi.framework.wiring
Interface BundleWire


public interface BundleWire

A wire connecting a BundleCapability to a BundleRequirement.

ThreadSafe
Consumers of this API must not implement this interface

Method Summary
 BundleCapability getCapability()
          Returns the BundleCapability for this wire.
 BundleWiring getProviderWiring()
          Returns the bundle wiring providing the capability.
 BundleRequirement getRequirement()
          Return the BundleRequirement for this wire.
 BundleWiring getRequirerWiring()
          Returns the bundle wiring who requires the capability.
 

Method Detail

getCapability

BundleCapability getCapability()
Returns the BundleCapability for this wire.

Returns:
The BundleCapability for this wire.

getRequirement

BundleRequirement getRequirement()
Return the BundleRequirement for this wire.

Returns:
The BundleRequirement for this wire.

getProviderWiring

BundleWiring getProviderWiring()
Returns the bundle wiring providing the capability.

The bundle revision referenced by the returned bundle wiring may differ from the bundle revision reference by the capability.

Returns:
The bundle wiring providing the capability. If the bundle wiring providing the capability is not in use, null will be returned.

getRequirerWiring

BundleWiring getRequirerWiring()
Returns the bundle wiring who requires the capability.

The bundle revision referenced by the returned bundle wiring may differ from the bundle revision reference 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, null will be returned.

OSGi™ Service Platform
Core Specification

Release 4 Version 4.3

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0