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 Summary
ConstructorDescriptionDefaultSessionBuilder
(org.eclipse.aether.RepositorySystem repositorySystem, RepositorySystemLifecycle repositorySystemLifecycle, Supplier<String> sessionIdSupplier) Constructor for "top level" builders. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.RepositorySystemSession.SessionBuilder
addOnSessionEndedHandler
(Runnable handler) org.eclipse.aether.RepositorySystemSession.CloseableSession
build()
setArtifactDescriptorPolicy
(org.eclipse.aether.resolution.ArtifactDescriptorPolicy artifactDescriptorPolicy) setArtifactTypeRegistry
(org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry) setArtifactUpdatePolicy
(String artifactUpdatePolicy) setAuthenticationSelector
(org.eclipse.aether.repository.AuthenticationSelector authenticationSelector) setCache
(org.eclipse.aether.RepositoryCache cache) setChecksumPolicy
(String checksumPolicy) setConfigProperties
(Map<?, ?> configProperties) setConfigProperty
(String key, Object value) setData
(org.eclipse.aether.SessionData data) setDependencyGraphTransformer
(org.eclipse.aether.collection.DependencyGraphTransformer dependencyGraphTransformer) setDependencyManager
(org.eclipse.aether.collection.DependencyManager dependencyManager) setDependencySelector
(org.eclipse.aether.collection.DependencySelector dependencySelector) setDependencyTraverser
(org.eclipse.aether.collection.DependencyTraverser dependencyTraverser) setIgnoreArtifactDescriptorRepositories
(boolean ignoreArtifactDescriptorRepositories) setLocalRepositoryManager
(org.eclipse.aether.repository.LocalRepositoryManager localRepositoryManager) setMetadataUpdatePolicy
(String metadataUpdatePolicy) setMirrorSelector
(org.eclipse.aether.repository.MirrorSelector mirrorSelector) setOffline
(boolean offline) setProxySelector
(org.eclipse.aether.repository.ProxySelector proxySelector) setRepositoryCacheSupplier
(Supplier<org.eclipse.aether.RepositoryCache> cacheSupplier) setRepositoryListener
(org.eclipse.aether.RepositoryListener repositoryListener) setResolutionErrorPolicy
(org.eclipse.aether.resolution.ResolutionErrorPolicy resolutionErrorPolicy) setScopeManager
(org.eclipse.aether.scope.ScopeManager scopeManager) setSessionDataSupplier
(Supplier<org.eclipse.aether.SessionData> dataSupplier) setSystemProperties
(Map<?, ?> systemProperties) setSystemProperty
(String key, String value) setTransferListener
(org.eclipse.aether.transfer.TransferListener transferListener) setUpdatePolicy
(String updatePolicy) setUserProperties
(Map<?, ?> userProperties) setUserProperty
(String key, String value) setVersionFilter
(org.eclipse.aether.collection.VersionFilter versionFilter) setWorkspaceReader
(org.eclipse.aether.repository.WorkspaceReader workspaceReader) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withLocalRepositories
(Collection<org.eclipse.aether.repository.LocalRepository> localRepositories) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withLocalRepositories
(org.eclipse.aether.repository.LocalRepository... localRepositories) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withLocalRepositoryBaseDirectories
(Path... baseDirectories) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withLocalRepositoryBaseDirectories
(Collection<Path> baseDirectories) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withRepositoryListener
(Collection<org.eclipse.aether.RepositoryListener> repositoryListeners) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withRepositoryListener
(org.eclipse.aether.RepositoryListener... repositoryListeners) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withRepositorySystemSession
(org.eclipse.aether.RepositorySystemSession session) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withTransferListener
(Collection<org.eclipse.aether.transfer.TransferListener> transferListeners) org.eclipse.aether.RepositorySystemSession.SessionBuilder
withTransferListener
(org.eclipse.aether.transfer.TransferListener... transferListeners)
-
Constructor Details
-
DefaultSessionBuilder
public DefaultSessionBuilder(org.eclipse.aether.RepositorySystem repositorySystem, RepositorySystemLifecycle repositorySystemLifecycle, Supplier<String> sessionIdSupplier) Constructor for "top level" builders.
-
-
Method Details
-
setOffline
- Specified by:
setOffline
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setIgnoreArtifactDescriptorRepositories
public DefaultSessionBuilder setIgnoreArtifactDescriptorRepositories(boolean ignoreArtifactDescriptorRepositories) - Specified by:
setIgnoreArtifactDescriptorRepositories
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setResolutionErrorPolicy
public DefaultSessionBuilder setResolutionErrorPolicy(org.eclipse.aether.resolution.ResolutionErrorPolicy resolutionErrorPolicy) - Specified by:
setResolutionErrorPolicy
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setArtifactDescriptorPolicy
public DefaultSessionBuilder setArtifactDescriptorPolicy(org.eclipse.aether.resolution.ArtifactDescriptorPolicy artifactDescriptorPolicy) - Specified by:
setArtifactDescriptorPolicy
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setChecksumPolicy
- Specified by:
setChecksumPolicy
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setUpdatePolicy
- Specified by:
setUpdatePolicy
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setArtifactUpdatePolicy
- Specified by:
setArtifactUpdatePolicy
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setMetadataUpdatePolicy
- Specified by:
setMetadataUpdatePolicy
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setLocalRepositoryManager
public DefaultSessionBuilder setLocalRepositoryManager(org.eclipse.aether.repository.LocalRepositoryManager localRepositoryManager) - Specified by:
setLocalRepositoryManager
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setWorkspaceReader
public DefaultSessionBuilder setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader) - Specified by:
setWorkspaceReader
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setRepositoryListener
public DefaultSessionBuilder setRepositoryListener(org.eclipse.aether.RepositoryListener repositoryListener) - Specified by:
setRepositoryListener
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setTransferListener
public DefaultSessionBuilder setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener) - Specified by:
setTransferListener
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setSystemProperties
- Specified by:
setSystemProperties
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setSystemProperty
- Specified by:
setSystemProperty
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setUserProperties
- Specified by:
setUserProperties
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setUserProperty
- Specified by:
setUserProperty
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setConfigProperties
- Specified by:
setConfigProperties
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setConfigProperty
- Specified by:
setConfigProperty
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setMirrorSelector
public DefaultSessionBuilder setMirrorSelector(org.eclipse.aether.repository.MirrorSelector mirrorSelector) - Specified by:
setMirrorSelector
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setProxySelector
public DefaultSessionBuilder setProxySelector(org.eclipse.aether.repository.ProxySelector proxySelector) - Specified by:
setProxySelector
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setAuthenticationSelector
public DefaultSessionBuilder setAuthenticationSelector(org.eclipse.aether.repository.AuthenticationSelector authenticationSelector) - Specified by:
setAuthenticationSelector
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setArtifactTypeRegistry
public DefaultSessionBuilder setArtifactTypeRegistry(org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry) - Specified by:
setArtifactTypeRegistry
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setDependencyTraverser
public DefaultSessionBuilder setDependencyTraverser(org.eclipse.aether.collection.DependencyTraverser dependencyTraverser) - Specified by:
setDependencyTraverser
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setDependencyManager
public DefaultSessionBuilder setDependencyManager(org.eclipse.aether.collection.DependencyManager dependencyManager) - Specified by:
setDependencyManager
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setDependencySelector
public DefaultSessionBuilder setDependencySelector(org.eclipse.aether.collection.DependencySelector dependencySelector) - Specified by:
setDependencySelector
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setVersionFilter
public DefaultSessionBuilder setVersionFilter(org.eclipse.aether.collection.VersionFilter versionFilter) - Specified by:
setVersionFilter
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setDependencyGraphTransformer
public DefaultSessionBuilder setDependencyGraphTransformer(org.eclipse.aether.collection.DependencyGraphTransformer dependencyGraphTransformer) - Specified by:
setDependencyGraphTransformer
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setData
- Specified by:
setData
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setSessionDataSupplier
public DefaultSessionBuilder setSessionDataSupplier(Supplier<org.eclipse.aether.SessionData> dataSupplier) - Specified by:
setSessionDataSupplier
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setCache
- Specified by:
setCache
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setScopeManager
- Specified by:
setScopeManager
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
addOnSessionEndedHandler
public org.eclipse.aether.RepositorySystemSession.SessionBuilder addOnSessionEndedHandler(Runnable handler) - Specified by:
addOnSessionEndedHandler
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
setRepositoryCacheSupplier
public DefaultSessionBuilder setRepositoryCacheSupplier(Supplier<org.eclipse.aether.RepositoryCache> cacheSupplier) - Specified by:
setRepositoryCacheSupplier
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withLocalRepositoryBaseDirectories
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositoryBaseDirectories(Path... baseDirectories) - Specified by:
withLocalRepositoryBaseDirectories
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withLocalRepositoryBaseDirectories
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositoryBaseDirectories(Collection<Path> baseDirectories) - Specified by:
withLocalRepositoryBaseDirectories
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withLocalRepositories
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositories(org.eclipse.aether.repository.LocalRepository... localRepositories) - Specified by:
withLocalRepositories
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withLocalRepositories
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withLocalRepositories(Collection<org.eclipse.aether.repository.LocalRepository> localRepositories) - Specified by:
withLocalRepositories
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withRepositoryListener
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withRepositoryListener(org.eclipse.aether.RepositoryListener... repositoryListeners) - Specified by:
withRepositoryListener
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withRepositoryListener
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withRepositoryListener(Collection<org.eclipse.aether.RepositoryListener> repositoryListeners) - Specified by:
withRepositoryListener
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withTransferListener
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withTransferListener(org.eclipse.aether.transfer.TransferListener... transferListeners) - Specified by:
withTransferListener
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withTransferListener
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withTransferListener(Collection<org.eclipse.aether.transfer.TransferListener> transferListeners) - Specified by:
withTransferListener
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
withRepositorySystemSession
public org.eclipse.aether.RepositorySystemSession.SessionBuilder withRepositorySystemSession(org.eclipse.aether.RepositorySystemSession session) - Specified by:
withRepositorySystemSession
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-
build
- Specified by:
build
in interfaceorg.eclipse.aether.RepositorySystemSession.SessionBuilder
-