Class TargetPlatformBaseImpl

    • Field Detail

      • installableUnits

        protected final java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits
        All installable units contained in the target platform. This includes reactor-external content and all results of upstream reactor projects (or all projects in case of the preliminary target platform where the reactor build order isn't known yet). Configured and automatic filters have been applied.
      • reactorProjectLookup

        private final java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,​ReactorProjectIdentities> reactorProjectLookup
        Map from installable units back to the contributing reactor project. Note: May contain installable units as keys which are not part of the target platform.
      • mavenArtifactLookup

        final java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,​IArtifactFacade> mavenArtifactLookup
        Map from installable units back to the contributing artifacts. Note: May contain installable units as keys which are not part of the target platform.
      • executionEnvironment

        final ExecutionEnvironmentResolutionHints executionEnvironment
        Execution environment information with information about the packages provided by the JRE.
    • Method Detail

      • getInstallableUnits

        public final java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits()
        Specified by:
        getInstallableUnits in interface P2TargetPlatform
      • resolveArtifact

        public final ArtifactKey resolveArtifact​(java.lang.String type,
                                                 java.lang.String id,
                                                 java.lang.String version)
                                          throws IllegalArtifactReferenceException,
                                                 DependencyResolutionException
        Description copied from interface: TargetPlatform
        Returns an artifact of the given type, id and matching version. The version reference string matches versions according to the following rules:
        • "0.0.0" or null matches any version
        • "1.2.3.qualifier", i.e. a version with a literal "qualifier", matches all versions in the range [1.2.3,1.2.4)
        • all other version references match artifacts with exactly that version. For example the version reference "1.2.3.v2014" stands for the strict version range [1.2.3.v2014,1.2.3.v2014]
        In case there multiple matching artifacts, the artifact with the highest version is returned.
        Specified by:
        resolveArtifact in interface TargetPlatform
        Parameters:
        type - One of the types defined in ArtifactType
        id - The ID of the artifact to be found.
        version - A version reference string selecting one exact version or versions from a range. May be null.
        Returns:
        a matching artifact.
        Throws:
        IllegalArtifactReferenceException - if an invalid type or malformed version reference is given
        DependencyResolutionException - if there is no matching artifact in the target platform.
      • getOriginalReactorProjectMap

        public final java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,​ReactorProjectIdentities> getOriginalReactorProjectMap()
        Description copied from interface: P2TargetPlatform
        Returns the map from target platform installable units back to the contributing reactor project.

        Note: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.

        Specified by:
        getOriginalReactorProjectMap in interface P2TargetPlatform
      • getOriginalMavenArtifactMap

        public final java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,​IArtifactFacade> getOriginalMavenArtifactMap()
        Description copied from interface: P2TargetPlatform
        Returns the map from target platform installable units back to the contributing Maven artifacts.

        Note: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.

        Specified by:
        getOriginalMavenArtifactMap in interface P2TargetPlatform
      • getLocalArtifactFile

        public final java.io.File getLocalArtifactFile​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
        Specified by:
        getLocalArtifactFile in interface P2TargetPlatform
      • getArtifactLocation

        public java.io.File getArtifactLocation​(ArtifactKey artifact)
        Description copied from interface: TargetPlatform
        Returns the file system location of the given target platform artifact.
        Specified by:
        getArtifactLocation in interface TargetPlatform
        Returns:
        the location of the given artifact, or null if the artifact does not exist in the target platform, or if the given ArtifactKey refers to an metadata-only "artifact" e.g. a product definition.