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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.aether.RepositorySystemSession
org.eclipse.aether.RepositorySystemSession.CloseableSession, org.eclipse.aether.RepositorySystemSession.SessionBuilder
-
Constructor Summary
ConstructorDescriptionDefaultCloseableSession
(String sessionId, AtomicBoolean closed, 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, List<org.eclipse.aether.repository.LocalRepository> localRepositories, org.eclipse.aether.repository.WorkspaceReader workspaceReader, org.eclipse.aether.RepositoryListener repositoryListener, 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.RepositorySystem repositorySystem, RepositorySystemLifecycle repositorySystemLifecycle) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addOnSessionEndedHandler
(Runnable handler) void
close()
org.eclipse.aether.RepositorySystemSession.SessionBuilder
copy()
org.eclipse.aether.resolution.ArtifactDescriptorPolicy
org.eclipse.aether.artifact.ArtifactTypeRegistry
org.eclipse.aether.repository.AuthenticationSelector
org.eclipse.aether.RepositoryCache
getCache()
org.eclipse.aether.SessionData
getData()
org.eclipse.aether.collection.DependencyGraphTransformer
org.eclipse.aether.collection.DependencyManager
org.eclipse.aether.collection.DependencySelector
org.eclipse.aether.collection.DependencyTraverser
org.eclipse.aether.repository.LocalRepository
org.eclipse.aether.repository.LocalRepositoryManager
org.eclipse.aether.repository.MirrorSelector
org.eclipse.aether.repository.ProxySelector
org.eclipse.aether.RepositoryListener
org.eclipse.aether.resolution.ResolutionErrorPolicy
org.eclipse.aether.transfer.TransferListener
org.eclipse.aether.collection.VersionFilter
org.eclipse.aether.repository.WorkspaceReader
boolean
boolean
-
Constructor Details
-
DefaultCloseableSession
public DefaultCloseableSession(String sessionId, AtomicBoolean closed, 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, List<org.eclipse.aether.repository.LocalRepository> localRepositories, org.eclipse.aether.repository.WorkspaceReader workspaceReader, org.eclipse.aether.RepositoryListener repositoryListener, 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.RepositorySystem repositorySystem, RepositorySystemLifecycle repositorySystemLifecycle)
-
-
Method Details
-
sessionId
- Specified by:
sessionId
in interfaceorg.eclipse.aether.RepositorySystemSession.CloseableSession
-
copy
- Specified by:
copy
in interfaceorg.eclipse.aether.RepositorySystemSession.CloseableSession
-
isOffline
- Specified by:
isOffline
in interfaceorg.eclipse.aether.RepositorySystemSession
-
isIgnoreArtifactDescriptorRepositories
- Specified by:
isIgnoreArtifactDescriptorRepositories
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getResolutionErrorPolicy
- Specified by:
getResolutionErrorPolicy
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getArtifactDescriptorPolicy
- Specified by:
getArtifactDescriptorPolicy
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getChecksumPolicy
- Specified by:
getChecksumPolicy
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getUpdatePolicy
- Specified by:
getUpdatePolicy
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getArtifactUpdatePolicy
- Specified by:
getArtifactUpdatePolicy
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getMetadataUpdatePolicy
- Specified by:
getMetadataUpdatePolicy
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getLocalRepository
- Specified by:
getLocalRepository
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getLocalRepositoryManager
- Specified by:
getLocalRepositoryManager
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getWorkspaceReader
- Specified by:
getWorkspaceReader
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getRepositoryListener
- Specified by:
getRepositoryListener
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getTransferListener
- Specified by:
getTransferListener
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getSystemProperties
- Specified by:
getSystemProperties
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getUserProperties
- Specified by:
getUserProperties
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getMirrorSelector
- Specified by:
getMirrorSelector
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getProxySelector
- Specified by:
getProxySelector
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getAuthenticationSelector
- Specified by:
getAuthenticationSelector
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getArtifactTypeRegistry
- Specified by:
getArtifactTypeRegistry
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getDependencyTraverser
- Specified by:
getDependencyTraverser
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getDependencyManager
- Specified by:
getDependencyManager
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getDependencySelector
- Specified by:
getDependencySelector
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getVersionFilter
- Specified by:
getVersionFilter
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getDependencyGraphTransformer
- Specified by:
getDependencyGraphTransformer
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getData
- Specified by:
getData
in interfaceorg.eclipse.aether.RepositorySystemSession
-
getCache
- Specified by:
getCache
in interfaceorg.eclipse.aether.RepositorySystemSession
-
addOnSessionEndedHandler
- Specified by:
addOnSessionEndedHandler
in interfaceorg.eclipse.aether.RepositorySystemSession
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.eclipse.aether.RepositorySystemSession.CloseableSession
-