Package org.osgi.resource
Interface Wire
- All Known Subinterfaces:
 BundleWire
- All Known Implementing Classes:
 BundleWireImpl
@ConsumerType
public interface Wire
A wire connecting a 
Capability to a Requirement.
 
 Instances of this type must be effectively immutable. That is, for a given instance of this interface, the methods defined by this interface must always return the same result.
- Author:
 - $Id: 6c248ea2b9b24f3610a14e5e8deec9cd0b7aa1c9 $
 
- 
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares thisWireto anotherWire.Returns theCapabilityfor this wire.Returns the resource providing thecapability.Returns theRequirementfor this wire.Returns the resource whorequiresthecapability.inthashCode()Returns the hashCode of thisWire. 
- 
Method Details
- 
getCapability
Capability getCapability()Returns theCapabilityfor this wire.- Returns:
 - The 
Capabilityfor this wire. 
 - 
getRequirement
Requirement getRequirement()Returns theRequirementfor this wire.- Returns:
 - The 
Requirementfor this wire. 
 - 
getProvider
Resource getProvider()Returns the resource providing thecapability.The returned resource may differ from the resource referenced by the
capability.- Returns:
 - The resource providing the capability.
 
 - 
getRequirer
Resource getRequirer()Returns the resource whorequiresthecapability.The returned resource may differ from the resource referenced by the
requirement.- Returns:
 - The resource who requires the capability.
 
 - 
equals
Compares thisWireto anotherWire.This
Wireis equal to anotherWireif they have the same capability, requirement, provider and requirer. - 
hashCode
int hashCode()Returns the hashCode of thisWire. 
 -