Class DefaultCloseableSession

java.lang.Object
org.eclipse.aether.internal.impl.session.DefaultCloseableSession
All Implemented Interfaces:
Closeable, AutoCloseable, org.eclipse.aether.RepositorySystemSession, org.eclipse.aether.RepositorySystemSession.CloseableSession

public final class DefaultCloseableSession extends Object implements org.eclipse.aether.RepositorySystemSession.CloseableSession
A default implementation of repository system session that is immutable and thread-safe.
  • Constructor Details

    • DefaultCloseableSession

      public DefaultCloseableSession(String sessionId, boolean offline, boolean ignoreArtifactDescriptorRepositories, org.eclipse.aether.resolution.ResolutionErrorPolicy resolutionErrorPolicy, org.eclipse.aether.resolution.ArtifactDescriptorPolicy artifactDescriptorPolicy, String checksumPolicy, String artifactUpdatePolicy, String metadataUpdatePolicy, org.eclipse.aether.repository.LocalRepositoryManager localRepositoryManager, Collection<org.eclipse.aether.repository.LocalRepository> localRepositories, org.eclipse.aether.repository.WorkspaceReader workspaceReader, Collection<org.eclipse.aether.RepositoryListener> repositoryListener, Collection<org.eclipse.aether.transfer.TransferListener> transferListener, Map<String,String> systemProperties, Map<String,String> userProperties, Map<String,Object> configProperties, org.eclipse.aether.repository.MirrorSelector mirrorSelector, org.eclipse.aether.repository.ProxySelector proxySelector, org.eclipse.aether.repository.AuthenticationSelector authenticationSelector, org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry, org.eclipse.aether.collection.DependencyTraverser dependencyTraverser, org.eclipse.aether.collection.DependencyManager dependencyManager, org.eclipse.aether.collection.DependencySelector dependencySelector, org.eclipse.aether.collection.VersionFilter versionFilter, org.eclipse.aether.collection.DependencyGraphTransformer dependencyGraphTransformer, org.eclipse.aether.SessionData data, org.eclipse.aether.RepositoryCache cache, org.eclipse.aether.scope.ScopeManager scopeManager, List<Runnable> onSessionEndedHandlers, org.eclipse.aether.RepositorySystem repositorySystem, RepositorySystemLifecycle repositorySystemLifecycle)
  • Method Details

    • sessionId

      public String sessionId()
      Specified by:
      sessionId in interface org.eclipse.aether.RepositorySystemSession.CloseableSession
    • isOffline

      public boolean isOffline()
      Specified by:
      isOffline in interface org.eclipse.aether.RepositorySystemSession
    • isIgnoreArtifactDescriptorRepositories

      Specified by:
      isIgnoreArtifactDescriptorRepositories in interface org.eclipse.aether.RepositorySystemSession
    • getResolutionErrorPolicy

      public org.eclipse.aether.resolution.ResolutionErrorPolicy getResolutionErrorPolicy()
      Specified by:
      getResolutionErrorPolicy in interface org.eclipse.aether.RepositorySystemSession
    • getArtifactDescriptorPolicy

      public org.eclipse.aether.resolution.ArtifactDescriptorPolicy getArtifactDescriptorPolicy()
      Specified by:
      getArtifactDescriptorPolicy in interface org.eclipse.aether.RepositorySystemSession
    • getChecksumPolicy

      Specified by:
      getChecksumPolicy in interface org.eclipse.aether.RepositorySystemSession
    • getUpdatePolicy

      Specified by:
      getUpdatePolicy in interface org.eclipse.aether.RepositorySystemSession
    • getArtifactUpdatePolicy

      Specified by:
      getArtifactUpdatePolicy in interface org.eclipse.aether.RepositorySystemSession
    • getMetadataUpdatePolicy

      Specified by:
      getMetadataUpdatePolicy in interface org.eclipse.aether.RepositorySystemSession
    • getLocalRepository

      public org.eclipse.aether.repository.LocalRepository getLocalRepository()
      Specified by:
      getLocalRepository in interface org.eclipse.aether.RepositorySystemSession
    • getLocalRepositoryManager

      public org.eclipse.aether.repository.LocalRepositoryManager getLocalRepositoryManager()
      Specified by:
      getLocalRepositoryManager in interface org.eclipse.aether.RepositorySystemSession
    • getWorkspaceReader

      public org.eclipse.aether.repository.WorkspaceReader getWorkspaceReader()
      Specified by:
      getWorkspaceReader in interface org.eclipse.aether.RepositorySystemSession
    • getRepositoryListener

      public org.eclipse.aether.RepositoryListener getRepositoryListener()
      Specified by:
      getRepositoryListener in interface org.eclipse.aether.RepositorySystemSession
    • getTransferListener

      public org.eclipse.aether.transfer.TransferListener getTransferListener()
      Specified by:
      getTransferListener in interface org.eclipse.aether.RepositorySystemSession
    • getSystemProperties

      Specified by:
      getSystemProperties in interface org.eclipse.aether.RepositorySystemSession
    • getUserProperties

      Specified by:
      getUserProperties in interface org.eclipse.aether.RepositorySystemSession
    • getConfigProperties

      Specified by:
      getConfigProperties in interface org.eclipse.aether.RepositorySystemSession
    • getMirrorSelector

      public org.eclipse.aether.repository.MirrorSelector getMirrorSelector()
      Specified by:
      getMirrorSelector in interface org.eclipse.aether.RepositorySystemSession
    • getProxySelector

      public org.eclipse.aether.repository.ProxySelector getProxySelector()
      Specified by:
      getProxySelector in interface org.eclipse.aether.RepositorySystemSession
    • getAuthenticationSelector

      public org.eclipse.aether.repository.AuthenticationSelector getAuthenticationSelector()
      Specified by:
      getAuthenticationSelector in interface org.eclipse.aether.RepositorySystemSession
    • getArtifactTypeRegistry

      public org.eclipse.aether.artifact.ArtifactTypeRegistry getArtifactTypeRegistry()
      Specified by:
      getArtifactTypeRegistry in interface org.eclipse.aether.RepositorySystemSession
    • getDependencyTraverser

      public org.eclipse.aether.collection.DependencyTraverser getDependencyTraverser()
      Specified by:
      getDependencyTraverser in interface org.eclipse.aether.RepositorySystemSession
    • getDependencyManager

      public org.eclipse.aether.collection.DependencyManager getDependencyManager()
      Specified by:
      getDependencyManager in interface org.eclipse.aether.RepositorySystemSession
    • getDependencySelector

      public org.eclipse.aether.collection.DependencySelector getDependencySelector()
      Specified by:
      getDependencySelector in interface org.eclipse.aether.RepositorySystemSession
    • getVersionFilter

      public org.eclipse.aether.collection.VersionFilter getVersionFilter()
      Specified by:
      getVersionFilter in interface org.eclipse.aether.RepositorySystemSession
    • getDependencyGraphTransformer

      public org.eclipse.aether.collection.DependencyGraphTransformer getDependencyGraphTransformer()
      Specified by:
      getDependencyGraphTransformer in interface org.eclipse.aether.RepositorySystemSession
    • getData

      public org.eclipse.aether.SessionData getData()
      Specified by:
      getData in interface org.eclipse.aether.RepositorySystemSession
    • getCache

      public org.eclipse.aether.RepositoryCache getCache()
      Specified by:
      getCache in interface org.eclipse.aether.RepositorySystemSession
    • getScopeManager

      public org.eclipse.aether.scope.ScopeManager getScopeManager()
      Specified by:
      getScopeManager in interface org.eclipse.aether.RepositorySystemSession
    • getSystemDependencyScope

      public org.eclipse.aether.scope.SystemDependencyScope getSystemDependencyScope()
      Specified by:
      getSystemDependencyScope in interface org.eclipse.aether.RepositorySystemSession
    • addOnSessionEndedHandler

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

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.eclipse.aether.RepositorySystemSession.CloseableSession