Class RepositorySystemSupplier
- All Implemented Interfaces:
Supplier<org.eclipse.aether.RepositorySystem>
Supplier
of RepositorySystem
instance, that on first call
supplies lazily constructed instance, and on each subsequent call same instance. Hence, this instance should be
thrown away immediately once repository system was created and there is no need for more instances. If new
repository system instance needed, new instance of this class must be created. For proper shut down of returned
repository system instance(s) use RepositorySystem.shutdown()
method on supplied instance(s).
Since Resolver 2.0 this class offers access to various components via public getters, and allows even partial object graph construction.
Extend this class createXXX()
methods and override to customize, if needed. The contract of this class makes
sure that these (potentially overridden) methods are invoked only once, and instance created by those methods are
memorized and kept as long as supplier instance is kept open.
This class is not thread safe and must be used from one thread only, while the constructed RepositorySystem
is thread safe.
Important: Given the instance of supplier memorizes the supplier RepositorySystem
instance it supplies,
their lifecycle is shared as well: once supplied repository system is shut-down, this instance becomes closed as
well. Any subsequent getXXX
method invocation attempt will fail with IllegalStateException
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.aether.impl.ArtifactDescriptorReader
protected org.eclipse.aether.spi.artifact.ArtifactPredicateFactory
protected org.eclipse.aether.impl.ArtifactResolver
protected org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector
protected org.eclipse.aether.spi.connector.transport.http.ChecksumExtractor
protected org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider
protected org.eclipse.aether.spi.io.ChecksumProcessor
protected org.eclipse.aether.impl.DependencyCollector
protected org.eclipse.aether.impl.Deployer
protected org.eclipse.aether.impl.Installer
protected org.eclipse.aether.internal.impl.LocalPathComposer
protected org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory
protected org.eclipse.aether.impl.LocalRepositoryProvider
protected LinkedHashMap
<String, MavenArtifactRelocationSource> protected org.eclipse.aether.impl.MetadataResolver
protected ModelBuilder
protected org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactory
protected org.eclipse.aether.impl.OfflineController
protected org.eclipse.aether.spi.io.PathProcessor
protected org.eclipse.aether.impl.RemoteRepositoryFilterManager
protected org.eclipse.aether.impl.RemoteRepositoryManager
protected org.eclipse.aether.impl.RepositoryConnectorProvider
protected org.eclipse.aether.impl.RepositoryEventDispatcher
protected org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider
protected org.eclipse.aether.RepositorySystem
protected org.eclipse.aether.impl.RepositorySystemLifecycle
protected org.eclipse.aether.spi.synccontext.SyncContextFactory
protected org.eclipse.aether.internal.impl.TrackingFileManager
protected org.eclipse.aether.spi.connector.transport.TransporterProvider
protected org.eclipse.aether.impl.UpdateCheckManager
protected org.eclipse.aether.impl.UpdatePolicyAnalyzer
protected org.eclipse.aether.impl.VersionRangeResolver
protected org.eclipse.aether.impl.VersionResolver
protected org.eclipse.aether.version.VersionScheme
org.eclipse.aether.RepositorySystem
get()
final org.eclipse.aether.impl.ArtifactDescriptorReader
final org.eclipse.aether.spi.artifact.ArtifactPredicateFactory
final org.eclipse.aether.impl.ArtifactResolver
final org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector
final org.eclipse.aether.spi.connector.transport.http.ChecksumExtractor
final org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider
final org.eclipse.aether.spi.io.ChecksumProcessor
final org.eclipse.aether.impl.DependencyCollector
final org.eclipse.aether.impl.Deployer
final org.eclipse.aether.impl.Installer
final org.eclipse.aether.internal.impl.LocalPathComposer
final org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory
final org.eclipse.aether.impl.LocalRepositoryProvider
final org.eclipse.aether.impl.MetadataResolver
final ModelBuilder
final org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactory
final org.eclipse.aether.impl.OfflineController
final org.eclipse.aether.spi.io.PathProcessor
final org.eclipse.aether.impl.RemoteRepositoryFilterManager
final org.eclipse.aether.impl.RemoteRepositoryManager
final org.eclipse.aether.impl.RepositoryConnectorProvider
final org.eclipse.aether.impl.RepositoryEventDispatcher
final org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider
final org.eclipse.aether.RepositorySystem
final org.eclipse.aether.impl.RepositorySystemLifecycle
final org.eclipse.aether.spi.synccontext.SyncContextFactory
final org.eclipse.aether.internal.impl.TrackingFileManager
final org.eclipse.aether.spi.connector.transport.TransporterProvider
final org.eclipse.aether.impl.UpdateCheckManager
final org.eclipse.aether.impl.UpdatePolicyAnalyzer
final org.eclipse.aether.impl.VersionRangeResolver
final org.eclipse.aether.impl.VersionResolver
final org.eclipse.aether.version.VersionScheme
-
Constructor Details
-
RepositorySystemSupplier
public RepositorySystemSupplier()
-
-
Method Details
-
getPathProcessor
public final org.eclipse.aether.spi.io.PathProcessor getPathProcessor() -
createPathProcessor
protected org.eclipse.aether.spi.io.PathProcessor createPathProcessor() -
getChecksumProcessor
public final org.eclipse.aether.spi.io.ChecksumProcessor getChecksumProcessor() -
createChecksumProcessor
protected org.eclipse.aether.spi.io.ChecksumProcessor createChecksumProcessor() -
getTrackingFileManager
public final org.eclipse.aether.internal.impl.TrackingFileManager getTrackingFileManager() -
createTrackingFileManager
protected org.eclipse.aether.internal.impl.TrackingFileManager createTrackingFileManager() -
getLocalPathComposer
public final org.eclipse.aether.internal.impl.LocalPathComposer getLocalPathComposer() -
createLocalPathComposer
protected org.eclipse.aether.internal.impl.LocalPathComposer createLocalPathComposer() -
getLocalPathPrefixComposerFactory
public final org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory getLocalPathPrefixComposerFactory() -
createLocalPathPrefixComposerFactory
protected org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory createLocalPathPrefixComposerFactory() -
getRepositorySystemLifecycle
public final org.eclipse.aether.impl.RepositorySystemLifecycle getRepositorySystemLifecycle() -
createRepositorySystemLifecycle
protected org.eclipse.aether.impl.RepositorySystemLifecycle createRepositorySystemLifecycle() -
getOfflineController
public final org.eclipse.aether.impl.OfflineController getOfflineController() -
createOfflineController
protected org.eclipse.aether.impl.OfflineController createOfflineController() -
getUpdatePolicyAnalyzer
public final org.eclipse.aether.impl.UpdatePolicyAnalyzer getUpdatePolicyAnalyzer() -
createUpdatePolicyAnalyzer
protected org.eclipse.aether.impl.UpdatePolicyAnalyzer createUpdatePolicyAnalyzer() -
getChecksumPolicyProvider
public final org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider getChecksumPolicyProvider() -
createChecksumPolicyProvider
protected org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider createChecksumPolicyProvider() -
getUpdateCheckManager
public final org.eclipse.aether.impl.UpdateCheckManager getUpdateCheckManager() -
createUpdateCheckManager
protected org.eclipse.aether.impl.UpdateCheckManager createUpdateCheckManager() -
getNamedLockFactories
-
createNamedLockFactories
-
getNameMappers
-
createNameMappers
-
getNamedLockFactoryAdapterFactory
public final org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactory getNamedLockFactoryAdapterFactory() -
createNamedLockFactoryAdapterFactory
protected org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactory createNamedLockFactoryAdapterFactory() -
getSyncContextFactory
public final org.eclipse.aether.spi.synccontext.SyncContextFactory getSyncContextFactory() -
createSyncContextFactory
protected org.eclipse.aether.spi.synccontext.SyncContextFactory createSyncContextFactory() -
getChecksumAlgorithmFactories
-
createChecksumAlgorithmFactories
-
getChecksumAlgorithmFactorySelector
public final org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector getChecksumAlgorithmFactorySelector() -
createChecksumAlgorithmFactorySelector
protected org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector createChecksumAlgorithmFactorySelector() -
getArtifactPredicateFactory
public final org.eclipse.aether.spi.artifact.ArtifactPredicateFactory getArtifactPredicateFactory() -
createArtifactPredicateFactory
protected org.eclipse.aether.spi.artifact.ArtifactPredicateFactory createArtifactPredicateFactory() -
getRepositoryLayoutFactories
-
createRepositoryLayoutFactories
-
getRepositoryLayoutProvider
public final org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider getRepositoryLayoutProvider() -
createRepositoryLayoutProvider
protected org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider createRepositoryLayoutProvider() -
getLocalRepositoryProvider
public final org.eclipse.aether.impl.LocalRepositoryProvider getLocalRepositoryProvider() -
createLocalRepositoryProvider
protected org.eclipse.aether.impl.LocalRepositoryProvider createLocalRepositoryProvider() -
getRemoteRepositoryManager
public final org.eclipse.aether.impl.RemoteRepositoryManager getRemoteRepositoryManager() -
createRemoteRepositoryManager
protected org.eclipse.aether.impl.RemoteRepositoryManager createRemoteRepositoryManager() -
getRemoteRepositoryFilterSources
-
createRemoteRepositoryFilterSources
-
getRemoteRepositoryFilterManager
public final org.eclipse.aether.impl.RemoteRepositoryFilterManager getRemoteRepositoryFilterManager() -
createRemoteRepositoryFilterManager
protected org.eclipse.aether.impl.RemoteRepositoryFilterManager createRemoteRepositoryFilterManager() -
getRepositoryListeners
-
createRepositoryListeners
-
getRepositoryEventDispatcher
public final org.eclipse.aether.impl.RepositoryEventDispatcher getRepositoryEventDispatcher() -
createRepositoryEventDispatcher
protected org.eclipse.aether.impl.RepositoryEventDispatcher createRepositoryEventDispatcher() -
getTrustedChecksumsSources
-
createTrustedChecksumsSources
-
getProvidedChecksumsSources
-
createProvidedChecksumsSources
-
getChecksumExtractorStrategies
-
createChecksumExtractorStrategies
-
getChecksumExtractor
public final org.eclipse.aether.spi.connector.transport.http.ChecksumExtractor getChecksumExtractor() -
createChecksumExtractor
protected org.eclipse.aether.spi.connector.transport.http.ChecksumExtractor createChecksumExtractor() -
getTransporterFactories
-
createTransporterFactories
-
getTransporterProvider
public final org.eclipse.aether.spi.connector.transport.TransporterProvider getTransporterProvider() -
createTransporterProvider
protected org.eclipse.aether.spi.connector.transport.TransporterProvider createTransporterProvider() -
getRepositoryConnectorFactories
-
createRepositoryConnectorFactories
-
getRepositoryConnectorProvider
public final org.eclipse.aether.impl.RepositoryConnectorProvider getRepositoryConnectorProvider() -
createRepositoryConnectorProvider
protected org.eclipse.aether.impl.RepositoryConnectorProvider createRepositoryConnectorProvider() -
getInstaller
public final org.eclipse.aether.impl.Installer getInstaller() -
createInstaller
protected org.eclipse.aether.impl.Installer createInstaller() -
getDeployer
public final org.eclipse.aether.impl.Deployer getDeployer() -
createDeployer
protected org.eclipse.aether.impl.Deployer createDeployer() -
getDependencyCollectorDelegates
-
createDependencyCollectorDelegates
-
getDependencyCollector
public final org.eclipse.aether.impl.DependencyCollector getDependencyCollector() -
createDependencyCollector
protected org.eclipse.aether.impl.DependencyCollector createDependencyCollector() -
getArtifactResolverPostProcessors
-
createArtifactResolverPostProcessors
-
getArtifactResolver
public final org.eclipse.aether.impl.ArtifactResolver getArtifactResolver() -
createArtifactResolver
protected org.eclipse.aether.impl.ArtifactResolver createArtifactResolver() -
getMetadataResolver
public final org.eclipse.aether.impl.MetadataResolver getMetadataResolver() -
createMetadataResolver
protected org.eclipse.aether.impl.MetadataResolver createMetadataResolver() -
getVersionScheme
public final org.eclipse.aether.version.VersionScheme getVersionScheme() -
createVersionScheme
protected org.eclipse.aether.version.VersionScheme createVersionScheme() -
getArtifactGeneratorFactories
-
createArtifactGeneratorFactories
-
getArtifactDecoratorFactories
-
createArtifactDecoratorFactories
-
getMetadataGeneratorFactories
-
createMetadataGeneratorFactories
-
getMavenArtifactRelocationSources
public final LinkedHashMap<String,MavenArtifactRelocationSource> getMavenArtifactRelocationSources() -
createMavenArtifactRelocationSources
protected LinkedHashMap<String,MavenArtifactRelocationSource> createMavenArtifactRelocationSources() -
getArtifactDescriptorReader
public final org.eclipse.aether.impl.ArtifactDescriptorReader getArtifactDescriptorReader() -
createArtifactDescriptorReader
protected org.eclipse.aether.impl.ArtifactDescriptorReader createArtifactDescriptorReader() -
getVersionResolver
public final org.eclipse.aether.impl.VersionResolver getVersionResolver() -
createVersionResolver
protected org.eclipse.aether.impl.VersionResolver createVersionResolver() -
getVersionRangeResolver
public final org.eclipse.aether.impl.VersionRangeResolver getVersionRangeResolver() -
createVersionRangeResolver
protected org.eclipse.aether.impl.VersionRangeResolver createVersionRangeResolver() -
getModelBuilder
-
createModelBuilder
-
getRepositorySystem
public final org.eclipse.aether.RepositorySystem getRepositorySystem() -
createRepositorySystem
protected org.eclipse.aether.RepositorySystem createRepositorySystem() -
get
public org.eclipse.aether.RepositorySystem get()
-