org.jboss.osgi.resolver.spi
Class AbstractWire

java.lang.Object
  extended by org.jboss.osgi.resolver.spi.AbstractWire
All Implemented Interfaces:
Wire

public class AbstractWire
extends Object
implements Wire

The abstract implementation of a Wire.

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Constructor Summary
protected AbstractWire(Capability capability, Requirement requirement, Resource provider, Resource requirer)
           
 
Method Summary
 Capability getCapability()
          Returns the Capability for this wire.
 Resource getProvider()
          Returns the resource providing the capability.
 Requirement getRequirement()
          Returns the Requirement for this wire.
 Resource getRequirer()
          Returns the resource who requires the capability.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.osgi.resource.Wire
equals, hashCode
 

Constructor Detail

AbstractWire

protected AbstractWire(Capability capability,
                       Requirement requirement,
                       Resource provider,
                       Resource requirer)
Method Detail

getCapability

public Capability getCapability()
Description copied from interface: Wire
Returns the Capability for this wire.

Specified by:
getCapability in interface Wire
Returns:
The Capability for this wire.

getRequirement

public Requirement getRequirement()
Description copied from interface: Wire
Returns the Requirement for this wire.

Specified by:
getRequirement in interface Wire
Returns:
The Requirement for this wire.

getProvider

public Resource getProvider()
Description copied from interface: Wire
Returns the resource providing the capability.

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

Specified by:
getProvider in interface Wire
Returns:
The resource providing the capability.

getRequirer

public Resource getRequirer()
Description copied from interface: Wire
Returns the resource who requires the capability.

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

Specified by:
getRequirer in interface Wire
Returns:
The resource who requires the capability.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.