Package org.eclipse.tycho.p2.target.ee
Class CustomEEResolutionHints
- java.lang.Object
-
- org.eclipse.tycho.p2.target.ee.CustomEEResolutionHints
-
- All Implemented Interfaces:
ExecutionEnvironmentResolutionHints
public final class CustomEEResolutionHints extends java.lang.Object implements ExecutionEnvironmentResolutionHints
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
eeName
private java.lang.String
unitName
private org.eclipse.equinox.p2.metadata.Version
unitVersion
-
Constructor Summary
Constructors Constructor Description CustomEEResolutionHints(java.lang.String eeName)
-
Method Summary
All Methods Instance Methods Concrete 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.private boolean
isJreUnit(java.lang.String id)
boolean
isNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu)
Returnstrue
if an installable unit shall be removed from the available IUs.(package private) void
parse(java.lang.String eeName)
seeJREAction#generateJREIUData()
-
-
-
Constructor Detail
-
CustomEEResolutionHints
public CustomEEResolutionHints(java.lang.String eeName) throws InvalidEENameException
- Throws:
InvalidEENameException
-
-
Method Detail
-
parse
void parse(java.lang.String eeName) throws InvalidEENameException
seeJREAction#generateJREIUData()
- Throws:
InvalidEENameException
-
isEESpecificationUnit
public boolean isEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
Description copied from interface:ExecutionEnvironmentResolutionHints
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.- Specified by:
isEESpecificationUnit
in interfaceExecutionEnvironmentResolutionHints
-
isNonApplicableEEUnit
public boolean isNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu)
Description copied from interface:ExecutionEnvironmentResolutionHints
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.- Specified by:
isNonApplicableEEUnit
in interfaceExecutionEnvironmentResolutionHints
-
isJreUnit
private boolean isJreUnit(java.lang.String id)
-
getMandatoryUnits
public java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getMandatoryUnits()
Description copied from interface:ExecutionEnvironmentResolutionHints
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).- Specified by:
getMandatoryUnits
in interfaceExecutionEnvironmentResolutionHints
-
getTemporaryAdditions
public java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getTemporaryAdditions()
Description copied from interface:ExecutionEnvironmentResolutionHints
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.- Specified by:
getTemporaryAdditions
in interfaceExecutionEnvironmentResolutionHints
-
getMandatoryRequires
public java.util.Collection<org.eclipse.equinox.p2.metadata.IRequirement> getMandatoryRequires()
Description copied from interface:ExecutionEnvironmentResolutionHints
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.- Specified by:
getMandatoryRequires
in interfaceExecutionEnvironmentResolutionHints
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceExecutionEnvironmentResolutionHints
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfaceExecutionEnvironmentResolutionHints
- Overrides:
equals
in classjava.lang.Object
-
-