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, scopeManager
  • Constructor Summary

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

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

    configureSessionBuilder, get, getArtifactDescriptorPolicy, getArtifactTypeRegistry, getDependencyGraphTransformer, getDependencyManager, getDependencyManager, getDependencySelector, getDependencyTraverser, getScopeManager

    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)