Top Description Methods
org.osgi.resource

public Interface Wire

Known Direct Subinterfaces
org.osgi.framework.wiring.BundleWire
Annotations
@ConsumerType
Imports
org.osgi.annotation.versioning.ConsumerType

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 TypeMethod and Description
public boolean

Returns:

true if this Wire is equal to the other object; false otherwise.
equals
(Object
The object to compare against this Wire.
obj
)

Compares this Wire to another Wire.

public Capability

Returns:

The Capability for this wire.
getCapability
()

Returns the Capability for this wire.

public Resource

Returns:

The resource providing the capability.
getProvider
()

Returns the resource providing the capability.

public Requirement

Returns:

The Requirement for this wire.
getRequirement
()

Returns the Requirement for this wire.

public Resource

Returns:

The resource who requires the capability.
getRequirer
()

Returns the resource who requires the capability.

public int

Returns:

The hashCode of this Wire.
hashCode
()

Returns the hashCode of this Wire.

Method Detail

equalsback to summary
public boolean equals(Object obj)

Compares this Wire to another Wire.

This Wire is equal to another Wire if they have the same capability, requirement, provider and requirer.

Parameters
obj:Object

The object to compare against this Wire.

Returns:boolean

true if this Wire is equal to the other object; false otherwise.

getCapabilityback to summary
public Capability getCapability()

Returns the Capability for this wire.

Returns:Capability

The Capability for this wire.

getProviderback to summary
public Resource getProvider()

Returns the resource providing the capability.

The returned resource may differ from the resource referenced by the capability.

Returns:Resource

The resource providing the capability.

getRequirementback to summary
public Requirement getRequirement()

Returns the Requirement for this wire.

Returns:Requirement

The Requirement for this wire.

getRequirerback to summary
public Resource getRequirer()

Returns the resource who requires the capability.

The returned resource may differ from the resource referenced by the requirement.

Returns:Resource

The resource who requires the capability.

hashCodeback to summary
public int hashCode()

Returns the hashCode of this Wire.

Returns:int

The hashCode of this Wire.