public final class CustomEEResolutionHints extends java.lang.Object implements ExecutionEnvironmentResolutionHints
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
eeName |
private java.lang.String |
unitName |
private org.eclipse.equinox.p2.metadata.Version |
unitVersion |
Constructor and Description |
---|
CustomEEResolutionHints(java.lang.String eeName) |
Modifier and Type | Method and Description |
---|---|
private static <T> boolean |
eq(T left,
T right) |
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)
Returns
true 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)
Returns
true if an installable unit shall be removed from the available IUs. |
(package private) void |
parse(java.lang.String eeName)
see
JREAction#generateJREIUData() |
private final java.lang.String eeName
private transient java.lang.String unitName
private transient org.eclipse.equinox.p2.metadata.Version unitVersion
public CustomEEResolutionHints(java.lang.String eeName) throws InvalidEENameException
InvalidEENameException
void parse(java.lang.String eeName) throws InvalidEENameException
JREAction#generateJREIUData()
InvalidEENameException
public boolean isEESpecificationUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit)
ExecutionEnvironmentResolutionHints
true
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.isEESpecificationUnit
in interface ExecutionEnvironmentResolutionHints
public boolean isNonApplicableEEUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit iu)
ExecutionEnvironmentResolutionHints
true
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.isNonApplicableEEUnit
in interface ExecutionEnvironmentResolutionHints
private boolean isJreUnit(java.lang.String id)
public java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getMandatoryUnits()
ExecutionEnvironmentResolutionHints
getMandatoryUnits
in interface ExecutionEnvironmentResolutionHints
public java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getTemporaryAdditions()
ExecutionEnvironmentResolutionHints
getTemporaryAdditions
in interface ExecutionEnvironmentResolutionHints
public java.util.Collection<org.eclipse.equinox.p2.metadata.IRequirement> getMandatoryRequires()
ExecutionEnvironmentResolutionHints
getMandatoryRequires
in interface ExecutionEnvironmentResolutionHints
public int hashCode()
hashCode
in interface ExecutionEnvironmentResolutionHints
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface ExecutionEnvironmentResolutionHints
equals
in class java.lang.Object
private static <T> boolean eq(T left, T right)