Class ScopeManagerImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.aether.scope.DependencyScope createDependencyScope​(java.lang.String id, boolean transitive, java.util.Collection<BuildScopeQuery> presence)
      Creates dependency scope instance.
      org.eclipse.aether.scope.ResolutionScope createResolutionScope​(java.lang.String id, java.util.Set<java.lang.String> aliases, InternalScopeManager.Mode mode, java.util.Collection<BuildScopeQuery> wantedPresence, java.util.Collection<org.eclipse.aether.scope.DependencyScope> explicitlyIncluded, java.util.Collection<org.eclipse.aether.scope.DependencyScope> transitivelyExcluded)
      Creates resolution scope instance with aliases.
      org.eclipse.aether.scope.SystemDependencyScope createSystemDependencyScope​(java.lang.String id, boolean transitive, java.util.Collection<BuildScopeQuery> presence, java.lang.String systemPathProperty)
      Creates system dependency scope instance.
      boolean equals​(java.lang.Object o)  
      org.eclipse.aether.graph.DependencyFilter getDependencyFilter​(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.scope.ResolutionScope resolutionScope)  
      java.util.Optional<org.eclipse.aether.scope.DependencyScope> getDependencyScope​(java.lang.String id)  
      java.util.Optional<BuildScope> getDependencyScopeMainProjectBuildScope​(org.eclipse.aether.scope.DependencyScope dependencyScope)
      Returns the BuildScope that this scope deem as main.
      java.util.Collection<org.eclipse.aether.scope.DependencyScope> getDependencyScopeUniverse()  
      int getDependencyScopeWidth​(org.eclipse.aether.scope.DependencyScope dependencyScope)
      The "width" of scope: is basically sum of all distinct ProjectPath and BuildPath that are in build scopes the scope is present in.
      org.eclipse.aether.collection.DependencySelector getDependencySelector​(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.scope.ResolutionScope resolutionScope)  
      java.lang.String getId()  
      java.util.Optional<org.eclipse.aether.scope.ResolutionScope> getResolutionScope​(java.lang.String id)  
      java.util.Collection<org.eclipse.aether.scope.ResolutionScope> getResolutionScopeUniverse()  
      java.util.Optional<org.eclipse.aether.scope.SystemDependencyScope> getSystemDependencyScope()  
      int hashCode()  
      org.eclipse.aether.collection.CollectResult postProcess​(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.scope.ResolutionScope resolutionScope, org.eclipse.aether.collection.CollectResult collectResult)
      Resolver specific: post-processing to be used to support this scope (with its dependency and resolution scopes).
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface org.eclipse.aether.scope.ScopeManager
      • getSystemDependencyScope

        public java.util.Optional<org.eclipse.aether.scope.SystemDependencyScope> getSystemDependencyScope()
        Specified by:
        getSystemDependencyScope in interface org.eclipse.aether.scope.ScopeManager
      • getDependencyScope

        public java.util.Optional<org.eclipse.aether.scope.DependencyScope> getDependencyScope​(java.lang.String id)
        Specified by:
        getDependencyScope in interface org.eclipse.aether.scope.ScopeManager
      • getDependencyScopeUniverse

        public java.util.Collection<org.eclipse.aether.scope.DependencyScope> getDependencyScopeUniverse()
        Specified by:
        getDependencyScopeUniverse in interface org.eclipse.aether.scope.ScopeManager
      • getResolutionScope

        public java.util.Optional<org.eclipse.aether.scope.ResolutionScope> getResolutionScope​(java.lang.String id)
        Specified by:
        getResolutionScope in interface org.eclipse.aether.scope.ScopeManager
      • getResolutionScopeUniverse

        public java.util.Collection<org.eclipse.aether.scope.ResolutionScope> getResolutionScopeUniverse()
        Specified by:
        getResolutionScopeUniverse in interface org.eclipse.aether.scope.ScopeManager
      • getDependencyScopeWidth

        public int getDependencyScopeWidth​(org.eclipse.aether.scope.DependencyScope dependencyScope)
        Description copied from interface: InternalScopeManager
        The "width" of scope: is basically sum of all distinct ProjectPath and BuildPath that are in build scopes the scope is present in. The more of them, the "wider" is the scope. Transitive scopes are weighted more as well.

        The ProjectPath.order() makes given path "weigh" more. So a scope being present only in "main" project path is wider than scope being present only in "test" project path.

        Interpretation: the bigger the returned integer is, the "wider" the scope is. The numbers should not serve any other purposes, merely to sort scope instances by "width" (i.e. from "widest" to "narrowest").

        Specified by:
        getDependencyScopeWidth in interface InternalScopeManager
      • getDependencySelector

        public org.eclipse.aether.collection.DependencySelector getDependencySelector​(org.eclipse.aether.RepositorySystemSession session,
                                                                                      org.eclipse.aether.scope.ResolutionScope resolutionScope)
        Specified by:
        getDependencySelector in interface org.eclipse.aether.scope.ScopeManager
      • getDependencyFilter

        public org.eclipse.aether.graph.DependencyFilter getDependencyFilter​(org.eclipse.aether.RepositorySystemSession session,
                                                                             org.eclipse.aether.scope.ResolutionScope resolutionScope)
        Specified by:
        getDependencyFilter in interface org.eclipse.aether.scope.ScopeManager
      • postProcess

        public org.eclipse.aether.collection.CollectResult postProcess​(org.eclipse.aether.RepositorySystemSession session,
                                                                       org.eclipse.aether.scope.ResolutionScope resolutionScope,
                                                                       org.eclipse.aether.collection.CollectResult collectResult)
        Description copied from interface: InternalScopeManager
        Resolver specific: post-processing to be used to support this scope (with its dependency and resolution scopes).
        Specified by:
        postProcess in interface InternalScopeManager
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object