Interface ExecutionEnvironmentResolutionHints
-
- All Known Implementing Classes:
AllKnownEEsResolutionHints
,CustomEEResolutionHints
,NoExecutionEnvironmentResolutionHints
,StandardEEResolutionHints
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 forequals(Object)
andhashCode()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.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.java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>
getMandatoryUnits()
Returns the list of installable units that shall be used during resolution.java.util.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.int
hashCode()
boolean
isEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
Returnstrue
for the "a.jre" installable unit that contains the specification of the execution environment.boolean
isNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu)
Returnstrue
if an installable unit shall be removed from the available IUs.
-
-
-
Method Detail
-
isEESpecificationUnit
boolean isEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
Returnstrue
for 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)
Returnstrue
if 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
java.util.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
java.util.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
java.util.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
boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-