Class SessionBuilderSupplier

java.lang.Object
org.apache.maven.repository.internal.MavenSessionBuilderSupplier
org.eclipse.aether.supplier.SessionBuilderSupplier
All Implemented Interfaces:
Supplier<org.eclipse.aether.RepositorySystemSession.SessionBuilder>

public class SessionBuilderSupplier extends org.apache.maven.repository.internal.MavenSessionBuilderSupplier
A simple Supplier of RepositorySystemSession.SessionBuilder instances, that on each call supplies newly constructed instance. To create session out of builder, use RepositorySystemSession.SessionBuilder.build(). For proper closing of sessions, use RepositorySystemSession.CloseableSession.close() method on built instance(s).

Extend this class and override methods to customize, if needed.

Since:
2.0.0
  • Field Summary

    Fields inherited from class org.apache.maven.repository.internal.MavenSessionBuilderSupplier

    repositorySystem
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionBuilderSupplier(org.eclipse.aether.RepositorySystem repositorySystem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configureSessionBuilder(org.eclipse.aether.RepositorySystemSession.SessionBuilder session)
     
    protected org.eclipse.aether.collection.DependencyManager
     
    protected org.eclipse.aether.impl.scope.InternalScopeManager
     

    Methods inherited from class org.apache.maven.repository.internal.MavenSessionBuilderSupplier

    get, getArtifactDescriptorPolicy, getArtifactTypeRegistry, getDependencyGraphTransformer, getDependencySelector, getDependencyTraverser, getSystemScopeHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionBuilderSupplier

      public SessionBuilderSupplier(org.eclipse.aether.RepositorySystem repositorySystem)
  • Method Details

    • configureSessionBuilder

      protected void configureSessionBuilder(org.eclipse.aether.RepositorySystemSession.SessionBuilder session)
      Overrides:
      configureSessionBuilder in class org.apache.maven.repository.internal.MavenSessionBuilderSupplier
    • getDependencyManager

      protected org.eclipse.aether.collection.DependencyManager getDependencyManager()
      Overrides:
      getDependencyManager in class org.apache.maven.repository.internal.MavenSessionBuilderSupplier
    • getScopeManager

      protected org.eclipse.aether.impl.scope.InternalScopeManager getScopeManager()