Interface InternalScopeManager

All Superinterfaces:
org.eclipse.aether.scope.ScopeManager
All Known Implementing Classes:
ScopeManagerImpl

public interface InternalScopeManager extends org.eclipse.aether.scope.ScopeManager
Internal scope manager.
Since:
2.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The mode of resolution scope: eliminate (remove all occurrences) or just remove.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.aether.scope.DependencyScope
    createDependencyScope(String id, boolean transitive, Collection<BuildScopeQuery> presence)
    Creates dependency scope instance.
    org.eclipse.aether.scope.ResolutionScope
    createResolutionScope(String id, InternalScopeManager.Mode mode, Collection<BuildScopeQuery> wantedPresence, Collection<org.eclipse.aether.scope.DependencyScope> explicitlyIncluded, Collection<org.eclipse.aether.scope.DependencyScope> transitivelyExcluded)
    Creates resolution scope instance.
    org.eclipse.aether.scope.SystemDependencyScope
    createSystemDependencyScope(String id, boolean transitive, Collection<BuildScopeQuery> presence, String systemPathProperty)
    Creates system dependency scope instance.
    org.eclipse.aether.graph.DependencyFilter
    getDependencyFilter(org.eclipse.aether.scope.ResolutionScope resolutionScope)
    Resolver specific: dependency filter to be used to support this scope (with its dependency and resolution scopes).
    org.eclipse.aether.collection.DependencyGraphTransformer
    getDependencyGraphTransformer(org.eclipse.aether.scope.ResolutionScope resolutionScope)
    Resolver specific: dependency graph transformer to be used to support this scope (with its dependency and resolution scopes).
    getDependencyScopeMainProjectBuildScope(org.eclipse.aether.scope.DependencyScope dependencyScope)
    Returns the BuildScope that this scope deem as main.
    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.scope.ResolutionScope resolutionScope)
    Resolver specific: dependency selector to be used to support this scope (with its dependency and resolution scopes).
    org.eclipse.aether.collection.CollectResult
    postProcess(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).

    Methods inherited from interface org.eclipse.aether.scope.ScopeManager

    getDependencyScope, getDependencyScopeUniverse, getId, getResolutionScope, getResolutionScopeUniverse, getSystemDependencyScope
  • Method Details

    • getDependencyScopeWidth

      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. 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").

    • getDependencyScopeMainProjectBuildScope

      Optional<BuildScope> getDependencyScopeMainProjectBuildScope(org.eclipse.aether.scope.DependencyScope dependencyScope)
      Returns the BuildScope that this scope deem as main.
    • getDependencySelector

      org.eclipse.aether.collection.DependencySelector getDependencySelector(org.eclipse.aether.scope.ResolutionScope resolutionScope)
      Resolver specific: dependency selector to be used to support this scope (with its dependency and resolution scopes).
    • getDependencyGraphTransformer

      org.eclipse.aether.collection.DependencyGraphTransformer getDependencyGraphTransformer(org.eclipse.aether.scope.ResolutionScope resolutionScope)
      Resolver specific: dependency graph transformer to be used to support this scope (with its dependency and resolution scopes).
    • postProcess

      org.eclipse.aether.collection.CollectResult postProcess(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).
    • getDependencyFilter

      org.eclipse.aether.graph.DependencyFilter getDependencyFilter(org.eclipse.aether.scope.ResolutionScope resolutionScope)
      Resolver specific: dependency filter to be used to support this scope (with its dependency and resolution scopes).
    • createDependencyScope

      org.eclipse.aether.scope.DependencyScope createDependencyScope(String id, boolean transitive, Collection<BuildScopeQuery> presence)
      Creates dependency scope instance.

      Should be invoked only via ScopeManagerConfiguration.buildDependencyScopes(InternalScopeManager).

    • createSystemDependencyScope

      org.eclipse.aether.scope.SystemDependencyScope createSystemDependencyScope(String id, boolean transitive, Collection<BuildScopeQuery> presence, String systemPathProperty)
      Creates system dependency scope instance. This method may be invoked only once, as there can be only one instance of SystemDependencyScope!

      Should be invoked only via ScopeManagerConfiguration.buildDependencyScopes(InternalScopeManager).

    • createResolutionScope

      org.eclipse.aether.scope.ResolutionScope createResolutionScope(String id, InternalScopeManager.Mode mode, Collection<BuildScopeQuery> wantedPresence, Collection<org.eclipse.aether.scope.DependencyScope> explicitlyIncluded, Collection<org.eclipse.aether.scope.DependencyScope> transitivelyExcluded)
      Creates resolution scope instance.

      Should be invoked only via ScopeManagerConfiguration.buildResolutionScopes(InternalScopeManager).