Eclipse Platform
Release 3.7

org.eclipse.osgi.service.resolver
Class StateWire

java.lang.Object
  extended by org.eclipse.osgi.service.resolver.StateWire

public class StateWire
extends Object

A state wire represents a decision made by a resolver to wire a requirement to a capability. There are 4 parts to a state wire.

Since:
3.7

Constructor Summary
StateWire(BundleDescription requirementHost, VersionConstraint declaredRequirement, BundleDescription capabilityHost, BaseDescription declaredCapability)
          Constructs a new state wire.
 
Method Summary
 BundleDescription getCapabilityHost()
          gets the capability host.
 BaseDescription getDeclaredCapability()
          gets the declared capability.
 VersionConstraint getDeclaredRequirement()
          Gets the declared requirement.
 BundleDescription getRequirementHost()
          Gets the requirement host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateWire

public StateWire(BundleDescription requirementHost,
                 VersionConstraint declaredRequirement,
                 BundleDescription capabilityHost,
                 BaseDescription declaredCapability)
Constructs a new state wire.

Parameters:
requirementHost - the bundle hosting the requirement.
declaredRequirement - the declared requirement. The bundle declaring the requirement may be different from the requirement host.
capabilityHost - the bundle hosting the capability.
declaredCapability - the declared capability. The bundle declaring the capability may be different from the capability host.
Method Detail

getRequirementHost

public BundleDescription getRequirementHost()
Gets the requirement host.

Returns:
the requirement host.

getDeclaredRequirement

public VersionConstraint getDeclaredRequirement()
Gets the declared requirement.

Returns:
the declared requirement.

getCapabilityHost

public BundleDescription getCapabilityHost()
gets the capability host.

Returns:
the capability host.

getDeclaredCapability

public BaseDescription getDeclaredCapability()
gets the declared capability.

Returns:
the declared capability.

Eclipse Platform
Release 3.7

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.