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
.
- Since:
- 1.9.15
-
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.connector.basic.BasicRepositoryConnectorFactory
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 org.eclipse.aether.impl.MetadataResolver
protected org.apache.maven.model.building.ModelBuilder
protected org.apache.maven.repository.internal.ModelCacheFactory
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.connector.basic.BasicRepositoryConnectorFactory
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 org.apache.maven.model.building.ModelBuilder
final org.apache.maven.repository.internal.ModelCacheFactory
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
-
createPathProcessor
-
getChecksumProcessor
-
createChecksumProcessor
-
getTrackingFileManager
-
createTrackingFileManager
-
getLocalPathComposer
-
createLocalPathComposer
-
getLocalPathPrefixComposerFactory
public final org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory getLocalPathPrefixComposerFactory() -
createLocalPathPrefixComposerFactory
protected org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory createLocalPathPrefixComposerFactory() -
getRepositorySystemLifecycle
-
createRepositorySystemLifecycle
-
getOfflineController
-
createOfflineController
-
getUpdatePolicyAnalyzer
-
createUpdatePolicyAnalyzer
-
getChecksumPolicyProvider
public final org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider getChecksumPolicyProvider() -
createChecksumPolicyProvider
protected org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider createChecksumPolicyProvider() -
getUpdateCheckManager
-
createUpdateCheckManager
-
getNamedLockFactories
-
createNamedLockFactories
-
getNameMappers
public final Map<String,org.eclipse.aether.internal.impl.synccontext.named.NameMapper> getNameMappers() -
createNameMappers
protected Map<String,org.eclipse.aether.internal.impl.synccontext.named.NameMapper> 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
-
createSyncContextFactory
-
getChecksumAlgorithmFactories
public final Map<String,org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> getChecksumAlgorithmFactories() -
createChecksumAlgorithmFactories
protected Map<String,org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> createChecksumAlgorithmFactories() -
getChecksumAlgorithmFactorySelector
public final org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector getChecksumAlgorithmFactorySelector() -
createChecksumAlgorithmFactorySelector
protected org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector createChecksumAlgorithmFactorySelector() -
getArtifactPredicateFactory
-
createArtifactPredicateFactory
-
getRepositoryLayoutFactories
public final Map<String,org.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory> getRepositoryLayoutFactories() -
createRepositoryLayoutFactories
protected Map<String,org.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory> createRepositoryLayoutFactories() -
getRepositoryLayoutProvider
public final org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider getRepositoryLayoutProvider() -
createRepositoryLayoutProvider
protected org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider createRepositoryLayoutProvider() -
getLocalRepositoryProvider
-
createLocalRepositoryProvider
-
getRemoteRepositoryManager
-
createRemoteRepositoryManager
-
getRemoteRepositoryFilterSources
public final Map<String,org.eclipse.aether.spi.connector.filter.RemoteRepositoryFilterSource> getRemoteRepositoryFilterSources() -
createRemoteRepositoryFilterSources
protected Map<String,org.eclipse.aether.spi.connector.filter.RemoteRepositoryFilterSource> createRemoteRepositoryFilterSources() -
getRemoteRepositoryFilterManager
public final org.eclipse.aether.impl.RemoteRepositoryFilterManager getRemoteRepositoryFilterManager() -
createRemoteRepositoryFilterManager
protected org.eclipse.aether.impl.RemoteRepositoryFilterManager createRemoteRepositoryFilterManager() -
getRepositoryListeners
-
createRepositoryListeners
-
getRepositoryEventDispatcher
-
createRepositoryEventDispatcher
-
getTrustedChecksumsSources
public final Map<String,org.eclipse.aether.spi.checksums.TrustedChecksumsSource> getTrustedChecksumsSources() -
createTrustedChecksumsSources
protected Map<String,org.eclipse.aether.spi.checksums.TrustedChecksumsSource> createTrustedChecksumsSources() -
getProvidedChecksumsSources
public final Map<String,org.eclipse.aether.spi.checksums.ProvidedChecksumsSource> getProvidedChecksumsSources() -
createProvidedChecksumsSources
protected Map<String,org.eclipse.aether.spi.checksums.ProvidedChecksumsSource> createProvidedChecksumsSources() -
getChecksumExtractorStrategies
public final Map<String,org.eclipse.aether.spi.connector.transport.http.ChecksumExtractorStrategy> getChecksumExtractorStrategies() -
createChecksumExtractorStrategies
protected Map<String,org.eclipse.aether.spi.connector.transport.http.ChecksumExtractorStrategy> 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
public final Map<String,org.eclipse.aether.spi.connector.transport.TransporterFactory> getTransporterFactories() -
createTransporterFactories
protected Map<String,org.eclipse.aether.spi.connector.transport.TransporterFactory> createTransporterFactories() -
getTransporterProvider
public final org.eclipse.aether.spi.connector.transport.TransporterProvider getTransporterProvider() -
createTransporterProvider
protected org.eclipse.aether.spi.connector.transport.TransporterProvider createTransporterProvider() -
getBasicRepositoryConnectorFactory
public final org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory getBasicRepositoryConnectorFactory() -
createBasicRepositoryConnectorFactory
protected org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory createBasicRepositoryConnectorFactory() -
getRepositoryConnectorFactories
public final Map<String,org.eclipse.aether.spi.connector.RepositoryConnectorFactory> getRepositoryConnectorFactories() -
createRepositoryConnectorFactories
protected Map<String,org.eclipse.aether.spi.connector.RepositoryConnectorFactory> createRepositoryConnectorFactories() -
getRepositoryConnectorProvider
-
createRepositoryConnectorProvider
-
getInstaller
-
createInstaller
-
getDeployer
-
createDeployer
-
getDependencyCollectorDelegates
public final Map<String,org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate> getDependencyCollectorDelegates() -
createDependencyCollectorDelegates
protected Map<String,org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate> createDependencyCollectorDelegates() -
getDependencyCollector
-
createDependencyCollector
-
getArtifactResolverPostProcessors
public final Map<String,org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> getArtifactResolverPostProcessors() -
createArtifactResolverPostProcessors
protected Map<String,org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> createArtifactResolverPostProcessors() -
getArtifactResolver
-
createArtifactResolver
-
getMetadataResolver
-
createMetadataResolver
-
getVersionScheme
-
createVersionScheme
-
getArtifactGeneratorFactories
public final Map<String,org.eclipse.aether.spi.artifact.generator.ArtifactGeneratorFactory> getArtifactGeneratorFactories() -
createArtifactGeneratorFactories
protected Map<String,org.eclipse.aether.spi.artifact.generator.ArtifactGeneratorFactory> createArtifactGeneratorFactories() -
getArtifactDecoratorFactories
public final Map<String,org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory> getArtifactDecoratorFactories() -
createArtifactDecoratorFactories
protected Map<String,org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory> createArtifactDecoratorFactories() -
getMetadataGeneratorFactories
public final Map<String,org.eclipse.aether.impl.MetadataGeneratorFactory> getMetadataGeneratorFactories() -
createMetadataGeneratorFactories
protected Map<String,org.eclipse.aether.impl.MetadataGeneratorFactory> createMetadataGeneratorFactories() -
getArtifactDescriptorReader
-
createArtifactDescriptorReader
-
getVersionResolver
-
createVersionResolver
-
getVersionRangeResolver
-
createVersionRangeResolver
-
getModelBuilder
-
createModelBuilder
-
getModelCacheFactory
-
createModelCacheFactory
-
getRepositorySystem
-
createRepositorySystem
-
get
-