Interface P2Resolver
-
- All Known Implementing Classes:
P2ResolverImpl
public interface P2Resolver
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ANY_QUALIFIER
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
addDependency(java.lang.String type, java.lang.String id, java.lang.String versionRange)
P2ResolutionResult
collectProjectDependencies(TargetPlatform context, ReactorProject project)
Deprecated.Only needed for the deprecated eclipse-update-site (see bug 342876)P2ResolutionResult
getTargetPlatformAsResolutionResult(TargetPlatformConfigurationStub tpConfiguration, java.lang.String eeName)
default java.util.List<P2ResolutionResult>
resolveDependencies(TargetPlatform context, ReactorProject project)
Deprecated.P2ResolutionResult
resolveInstallableUnit(TargetPlatform context, java.lang.String id, java.lang.String versionRange)
Resolves specified installable unit identified by id and versionRange.P2ResolutionResult
resolveMetadata(TargetPlatformConfigurationStub context, java.lang.String executionEnvironmentName)
java.util.Map<TargetEnvironment,P2ResolutionResult>
resolveTargetDependencies(TargetPlatform context, ReactorProject project)
Returns list ordered of resolution result, one per requested TargetEnvironment.void
setAdditionalFilterProperties(java.util.Map<java.lang.String,java.lang.String> filterProperties)
Sets additional properties that will be used to evaluate filter expressions in the p2 metadata.void
setEnvironments(java.util.List<TargetEnvironment> environments)
-
-
-
Field Detail
-
ANY_QUALIFIER
static final java.lang.String ANY_QUALIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setEnvironments
void setEnvironments(java.util.List<TargetEnvironment> environments)
-
setAdditionalFilterProperties
void setAdditionalFilterProperties(java.util.Map<java.lang.String,java.lang.String> filterProperties)
Sets additional properties that will be used to evaluate filter expressions in the p2 metadata. These properties are also known as "profile properties" in p2.
-
addDependency
void addDependency(java.lang.String type, java.lang.String id, java.lang.String versionRange) throws IllegalArtifactReferenceException
-
resolveTargetDependencies
java.util.Map<TargetEnvironment,P2ResolutionResult> resolveTargetDependencies(TargetPlatform context, ReactorProject project)
Returns list ordered of resolution result, one per requested TargetEnvironment.- Parameters:
project
- The reactor project to be resolved. May benull
, in which case only the additional dependencies are resolved.- See Also:
addDependency(String, String, String)
-
resolveDependencies
@Deprecated default java.util.List<P2ResolutionResult> resolveDependencies(TargetPlatform context, ReactorProject project)
Deprecated.
-
collectProjectDependencies
@Deprecated P2ResolutionResult collectProjectDependencies(TargetPlatform context, ReactorProject project)
Deprecated.Only needed for the deprecated eclipse-update-site (see bug 342876)
-
resolveMetadata
P2ResolutionResult resolveMetadata(TargetPlatformConfigurationStub context, java.lang.String executionEnvironmentName)
-
getTargetPlatformAsResolutionResult
P2ResolutionResult getTargetPlatformAsResolutionResult(TargetPlatformConfigurationStub tpConfiguration, java.lang.String eeName)
-
resolveInstallableUnit
P2ResolutionResult resolveInstallableUnit(TargetPlatform context, java.lang.String id, java.lang.String versionRange)
Resolves specified installable unit identified by id and versionRange. The unit with latest version is return if id/versionRange match multiple units.
-
-