Search in sources :

Example 1 with BaseDescriptionImpl

use of org.eclipse.osgi.internal.resolver.BaseDescriptionImpl in project rt.equinox.framework by eclipse.

the class ResolverImpl method newStateWire.

private static StateWire newStateWire(BundleDescription requirementHost, VersionConstraint declaredRequirement, BundleDescription capabilityHost, BaseDescription declaredCapability) {
    BaseDescription fragDeclared = ((BaseDescriptionImpl) declaredCapability).getFragmentDeclaration();
    declaredCapability = fragDeclared != null ? fragDeclared : declaredCapability;
    return new StateWire(requirementHost, declaredRequirement, capabilityHost, declaredCapability);
}
Also used : BaseDescriptionImpl(org.eclipse.osgi.internal.resolver.BaseDescriptionImpl) BaseDescription(org.eclipse.osgi.service.resolver.BaseDescription) StateWire(org.eclipse.osgi.service.resolver.StateWire)

Aggregations

BaseDescriptionImpl (org.eclipse.osgi.internal.resolver.BaseDescriptionImpl)1 BaseDescription (org.eclipse.osgi.service.resolver.BaseDescription)1 StateWire (org.eclipse.osgi.service.resolver.StateWire)1