Class DefaultSessionBuilder

java.lang.Object
org.eclipse.aether.internal.impl.session.DefaultSessionBuilder
All Implemented Interfaces:
org.eclipse.aether.RepositorySystemSession.SessionBuilder

public final class DefaultSessionBuilder extends Object implements org.eclipse.aether.RepositorySystemSession.SessionBuilder
A default implementation of session builder. Is not immutable nor thread-safe.
  • Constructor Details

  • Method Details

    • setOffline

      public DefaultSessionBuilder setOffline(boolean offline)
      Specified by:
      setOffline in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setIgnoreArtifactDescriptorRepositories

      public DefaultSessionBuilder setIgnoreArtifactDescriptorRepositories(boolean ignoreArtifactDescriptorRepositories)
      Specified by:
      setIgnoreArtifactDescriptorRepositories in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setResolutionErrorPolicy

      public DefaultSessionBuilder setResolutionErrorPolicy(org.eclipse.aether.resolution.ResolutionErrorPolicy resolutionErrorPolicy)
      Specified by:
      setResolutionErrorPolicy in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setArtifactDescriptorPolicy

      public DefaultSessionBuilder setArtifactDescriptorPolicy(org.eclipse.aether.resolution.ArtifactDescriptorPolicy artifactDescriptorPolicy)
      Specified by:
      setArtifactDescriptorPolicy in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setChecksumPolicy

      Specified by:
      setChecksumPolicy in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setUpdatePolicy

      Specified by:
      setUpdatePolicy in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setArtifactUpdatePolicy

      public DefaultSessionBuilder setArtifactUpdatePolicy(String artifactUpdatePolicy)
      Specified by:
      setArtifactUpdatePolicy in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setMetadataUpdatePolicy

      public DefaultSessionBuilder setMetadataUpdatePolicy(String metadataUpdatePolicy)
      Specified by:
      setMetadataUpdatePolicy in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setLocalRepositoryManager

      public DefaultSessionBuilder setLocalRepositoryManager(org.eclipse.aether.repository.LocalRepositoryManager localRepositoryManager)
      Specified by:
      setLocalRepositoryManager in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setWorkspaceReader

      public DefaultSessionBuilder setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader)
      Specified by:
      setWorkspaceReader in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setRepositoryListener

      public DefaultSessionBuilder setRepositoryListener(org.eclipse.aether.RepositoryListener repositoryListener)
      Specified by:
      setRepositoryListener in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setTransferListener

      public DefaultSessionBuilder setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener)
      Specified by:
      setTransferListener in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setSystemProperties

      public DefaultSessionBuilder setSystemProperties(Map<?,?> systemProperties)
      Specified by:
      setSystemProperties in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setSystemProperty

      Specified by:
      setSystemProperty in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setUserProperties

      public DefaultSessionBuilder setUserProperties(Map<?,?> userProperties)
      Specified by:
      setUserProperties in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setUserProperty

      Specified by:
      setUserProperty in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setConfigProperties

      public DefaultSessionBuilder setConfigProperties(Map<?,?> configProperties)
      Specified by:
      setConfigProperties in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setConfigProperty

      Specified by:
      setConfigProperty in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setMirrorSelector

      public DefaultSessionBuilder setMirrorSelector(org.eclipse.aether.repository.MirrorSelector mirrorSelector)
      Specified by:
      setMirrorSelector in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setProxySelector

      public DefaultSessionBuilder setProxySelector(org.eclipse.aether.repository.ProxySelector proxySelector)
      Specified by:
      setProxySelector in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setAuthenticationSelector

      public DefaultSessionBuilder setAuthenticationSelector(org.eclipse.aether.repository.AuthenticationSelector authenticationSelector)
      Specified by:
      setAuthenticationSelector in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setArtifactTypeRegistry

      public DefaultSessionBuilder setArtifactTypeRegistry(org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry)
      Specified by:
      setArtifactTypeRegistry in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setDependencyTraverser

      public DefaultSessionBuilder setDependencyTraverser(org.eclipse.aether.collection.DependencyTraverser dependencyTraverser)
      Specified by:
      setDependencyTraverser in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setDependencyManager

      public DefaultSessionBuilder setDependencyManager(org.eclipse.aether.collection.DependencyManager dependencyManager)
      Specified by:
      setDependencyManager in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setDependencySelector

      public DefaultSessionBuilder setDependencySelector(org.eclipse.aether.collection.DependencySelector dependencySelector)
      Specified by:
      setDependencySelector in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setVersionFilter

      public DefaultSessionBuilder setVersionFilter(org.eclipse.aether.collection.VersionFilter versionFilter)
      Specified by:
      setVersionFilter in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setDependencyGraphTransformer

      public DefaultSessionBuilder setDependencyGraphTransformer(org.eclipse.aether.collection.DependencyGraphTransformer dependencyGraphTransformer)
      Specified by:
      setDependencyGraphTransformer in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setData

      public DefaultSessionBuilder setData(org.eclipse.aether.SessionData data)
      Specified by:
      setData in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setSessionDataSupplier

      public DefaultSessionBuilder setSessionDataSupplier(Supplier<org.eclipse.aether.SessionData> dataSupplier)
      Specified by:
      setSessionDataSupplier in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setCache

      public DefaultSessionBuilder setCache(org.eclipse.aether.RepositoryCache cache)
      Specified by:
      setCache in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setScopeManager

      public DefaultSessionBuilder setScopeManager(org.eclipse.aether.scope.ScopeManager scopeManager)
      Specified by:
      setScopeManager in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • addOnSessionEndedHandler

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder addOnSessionEndedHandler(Runnable handler)
      Specified by:
      addOnSessionEndedHandler in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • setRepositoryCacheSupplier

      public DefaultSessionBuilder setRepositoryCacheSupplier(Supplier<org.eclipse.aether.RepositoryCache> cacheSupplier)
      Specified by:
      setRepositoryCacheSupplier in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withLocalRepositoryBaseDirectories

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositoryBaseDirectories(Path... baseDirectories)
      Specified by:
      withLocalRepositoryBaseDirectories in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withLocalRepositoryBaseDirectories

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositoryBaseDirectories(Collection<Path> baseDirectories)
      Specified by:
      withLocalRepositoryBaseDirectories in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withLocalRepositories

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositories(org.eclipse.aether.repository.LocalRepository... localRepositories)
      Specified by:
      withLocalRepositories in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withLocalRepositories

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositories(Collection<org.eclipse.aether.repository.LocalRepository> localRepositories)
      Specified by:
      withLocalRepositories in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withRepositoryListener

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withRepositoryListener(org.eclipse.aether.RepositoryListener... repositoryListeners)
      Specified by:
      withRepositoryListener in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withRepositoryListener

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withRepositoryListener(Collection<org.eclipse.aether.RepositoryListener> repositoryListeners)
      Specified by:
      withRepositoryListener in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withTransferListener

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withTransferListener(org.eclipse.aether.transfer.TransferListener... transferListeners)
      Specified by:
      withTransferListener in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withTransferListener

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withTransferListener(Collection<org.eclipse.aether.transfer.TransferListener> transferListeners)
      Specified by:
      withTransferListener in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • withRepositorySystemSession

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder withRepositorySystemSession(org.eclipse.aether.RepositorySystemSession session)
      Specified by:
      withRepositorySystemSession in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder
    • build

      public org.eclipse.aether.RepositorySystemSession.CloseableSession build()
      Specified by:
      build in interface org.eclipse.aether.RepositorySystemSession.SessionBuilder