Package org.eclipse.tycho
Interface ExecutionEnvironmentResolutionHints
public interface ExecutionEnvironmentResolutionHints
Settings for supporting resolution for a dedicated execution environment. Handles p2's "a.jre"
installable units representing the capabilities of the JRE or custom profiles.
Types implementing this interface shall be immutable and provide reasonable implementations for
equals(Object) and hashCode().-
Method Summary
Modifier and TypeMethodDescriptionbooleanCollection<org.eclipse.equinox.p2.metadata.IRequirement> Returns requirements to execution environment units to ensure that a) the execution environment units are available, and b) the units are used to the resolution result.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> Returns the list of installable units that shall be used during resolution.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> Returns the list of installable units that shall be temporarily added to the list of installable units, i.e. they shall be available during resolution but must be removed from the resolution result.inthashCode()booleanisEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit) Returnstruefor the "a.jre" installable unit that contains the specification of the execution environment.static booleanisJreUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit) booleanisNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu) Returnstrueif an installable unit shall be removed from the available IUs.
-
Method Details
-
isEESpecificationUnit
boolean isEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit) Returnstruefor the "a.jre" installable unit that contains the specification of the execution environment. This method is used for finding the specification unit of custom profiles. -
isNonApplicableEEUnit
boolean isNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu) Returnstrueif an installable unit shall be removed from the available IUs. This prevents that "a.jre" IUs for the wrong execution environment are used for resolution. -
getMandatoryUnits
Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getMandatoryUnits()Returns the list of installable units that shall be used during resolution. These units are added to the available units so that requirements of the capabilities of the execution environment can be resolved, and their use during resolution is enforced so that other units providing the same capabilities are not used (unless they are needed for other reasons). -
getMandatoryRequires
Collection<org.eclipse.equinox.p2.metadata.IRequirement> getMandatoryRequires()Returns requirements to execution environment units to ensure that a) the execution environment units are available, and b) the units are used to the resolution result. -
getTemporaryAdditions
Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getTemporaryAdditions()Returns the list of installable units that shall be temporarily added to the list of installable units, i.e. they shall be available during resolution but must be removed from the resolution result. -
equals
-
hashCode
int hashCode() -
isJreUnit
static boolean isJreUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
-