Package org.eclipse.tycho.p2.target.ee
Class StandardEEResolutionHints
- java.lang.Object
-
- org.eclipse.tycho.p2.target.ee.StandardEEResolutionHints
-
- All Implemented Interfaces:
ExecutionEnvironmentResolutionHints
public final class StandardEEResolutionHints extends Object implements ExecutionEnvironmentResolutionHints
Resolution hints for a standard execution environment, e.g. "CDC-1.0/Foundation-1.0" or "JavaSE-1.7"
-
-
Constructor Summary
Constructors Constructor Description StandardEEResolutionHints(ExecutionEnvironment executionEnvironment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>getMandatoryUnits()Returns the list of installable units that shall be used during resolution.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.inthashCode()booleanisEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)Returnstruefor the "a.jre" installable unit that contains the specification of the execution environment.booleanisNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu)p2 repositories are polluted with useless a.jre/config.a.jre IUs.StringtoString()
-
-
-
Constructor Detail
-
StandardEEResolutionHints
public StandardEEResolutionHints(ExecutionEnvironment executionEnvironment)
-
-
Method Detail
-
isNonApplicableEEUnit
public boolean isNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu)
p2 repositories are polluted with useless a.jre/config.a.jre IUs. These IUs do not represent current/desired JRE and can expose resolver to packages that are not actually available.- Specified by:
isNonApplicableEEUnitin interfaceExecutionEnvironmentResolutionHints
-
isEESpecificationUnit
public boolean isEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
Description copied from interface:ExecutionEnvironmentResolutionHintsReturnstruefor 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.- Specified by:
isEESpecificationUnitin interfaceExecutionEnvironmentResolutionHints
-
getMandatoryUnits
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getMandatoryUnits()
Description copied from interface:ExecutionEnvironmentResolutionHintsReturns 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).- Specified by:
getMandatoryUnitsin interfaceExecutionEnvironmentResolutionHints
-
getMandatoryRequires
public Collection<org.eclipse.equinox.p2.metadata.IRequirement> getMandatoryRequires()
Description copied from interface:ExecutionEnvironmentResolutionHintsReturns 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.- Specified by:
getMandatoryRequiresin interfaceExecutionEnvironmentResolutionHints
-
getTemporaryAdditions
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getTemporaryAdditions()
Description copied from interface:ExecutionEnvironmentResolutionHintsReturns 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.- Specified by:
getTemporaryAdditionsin interfaceExecutionEnvironmentResolutionHints
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceExecutionEnvironmentResolutionHints- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceExecutionEnvironmentResolutionHints- Overrides:
equalsin classObject
-
-