Class DefaultDependencyArtifacts

    • Field Detail

      • KEY_CACHE

        private static final java.util.WeakHashMap<ArtifactKey,​ArtifactKey> KEY_CACHE
        ArtifactKey cache used to correlate equal instances to reduce memory usage
      • ARTIFACT_CACHE

        private static final java.util.WeakHashMap<ArtifactDescriptor,​ArtifactDescriptor> ARTIFACT_CACHE
        ArtifactDescriptor cache used to correlate equal instances to reduce memory usage
      • project

        protected final ReactorProject project
        'this' project, i.e. the project the dependencies were resolved for. can be null.
      • nonReactorUnits

        protected final java.util.Set<java.lang.Object> nonReactorUnits
        Set of installable unit in the target platform of the module that do not come from the local reactor.
    • Constructor Detail

      • DefaultDependencyArtifacts

        public DefaultDependencyArtifacts()
      • DefaultDependencyArtifacts

        public DefaultDependencyArtifacts​(ReactorProject project)
    • Method Detail

      • getNonReactorUnits

        public java.util.Set<?> getNonReactorUnits()
        Description copied from interface: DependencyArtifacts
        Set of IInstallableUnits in the resolved project dependencies that come from outside the local reactor, or null if the the project dependencies were not resolved from a p2 target platform.
        Specified by:
        getNonReactorUnits in interface DependencyArtifacts
        Returns:
        Set<IInstallableUnit> or null
      • getInstallableUnits

        public java.util.Set<?> getInstallableUnits()
        Description copied from interface: DependencyArtifacts
        Collection of dependency metadata (p2 installable units). Includes metadata associated with dependency artifacts and metadata that is not possible or not practical to assosiate with a specific artifact, like, for example, p2 repository category installable units.

        The result does not include metadata associated with 'this' project.

        Specified by:
        getInstallableUnits in interface DependencyArtifacts
        Returns:
        Set<IInstallableUnit> or null
      • addNonReactorUnits

        public void addNonReactorUnits​(java.util.Set<?> installableUnits)