Class MavenRepositorySystemSupplier

java.lang.Object
org.apache.maven.repository.internal.MavenRepositorySystemSupplier
All Implemented Interfaces:
Supplier<org.eclipse.aether.RepositorySystem>

@Deprecated(since="4.0.0") public class MavenRepositorySystemSupplier extends Object implements Supplier<org.eclipse.aether.RepositorySystem>
Deprecated.
since 4.0.0, use maven-api-impl jar instead
A simple memorizing 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:
4.0.0
  • Constructor Details

    • MavenRepositorySystemSupplier

      public MavenRepositorySystemSupplier()
      Deprecated.
  • Method Details

    • getPathProcessor

      public final org.eclipse.aether.spi.io.PathProcessor getPathProcessor()
      Deprecated.
    • createPathProcessor

      protected org.eclipse.aether.spi.io.PathProcessor createPathProcessor()
      Deprecated.
    • getChecksumProcessor

      public final org.eclipse.aether.spi.io.ChecksumProcessor getChecksumProcessor()
      Deprecated.
    • createChecksumProcessor

      protected org.eclipse.aether.spi.io.ChecksumProcessor createChecksumProcessor()
      Deprecated.
    • getTrackingFileManager

      public final org.eclipse.aether.internal.impl.TrackingFileManager getTrackingFileManager()
      Deprecated.
    • createTrackingFileManager

      protected org.eclipse.aether.internal.impl.TrackingFileManager createTrackingFileManager()
      Deprecated.
    • getLocalPathComposer

      public final org.eclipse.aether.internal.impl.LocalPathComposer getLocalPathComposer()
      Deprecated.
    • createLocalPathComposer

      protected org.eclipse.aether.internal.impl.LocalPathComposer createLocalPathComposer()
      Deprecated.
    • getLocalPathPrefixComposerFactory

      public final org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory getLocalPathPrefixComposerFactory()
      Deprecated.
    • createLocalPathPrefixComposerFactory

      protected org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory createLocalPathPrefixComposerFactory()
      Deprecated.
    • getRepositorySystemLifecycle

      public final org.eclipse.aether.impl.RepositorySystemLifecycle getRepositorySystemLifecycle()
      Deprecated.
    • createRepositorySystemLifecycle

      protected org.eclipse.aether.impl.RepositorySystemLifecycle createRepositorySystemLifecycle()
      Deprecated.
    • getOfflineController

      public final org.eclipse.aether.impl.OfflineController getOfflineController()
      Deprecated.
    • createOfflineController

      protected org.eclipse.aether.impl.OfflineController createOfflineController()
      Deprecated.
    • getUpdatePolicyAnalyzer

      public final org.eclipse.aether.impl.UpdatePolicyAnalyzer getUpdatePolicyAnalyzer()
      Deprecated.
    • createUpdatePolicyAnalyzer

      protected org.eclipse.aether.impl.UpdatePolicyAnalyzer createUpdatePolicyAnalyzer()
      Deprecated.
    • getChecksumPolicyProvider

      public final org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider getChecksumPolicyProvider()
      Deprecated.
    • createChecksumPolicyProvider

      protected org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider createChecksumPolicyProvider()
      Deprecated.
    • getUpdateCheckManager

      public final org.eclipse.aether.impl.UpdateCheckManager getUpdateCheckManager()
      Deprecated.
    • createUpdateCheckManager

      protected org.eclipse.aether.impl.UpdateCheckManager createUpdateCheckManager()
      Deprecated.
    • getNamedLockFactories

      public final Map<String,org.eclipse.aether.named.NamedLockFactory> getNamedLockFactories()
      Deprecated.
    • createNamedLockFactories

      protected Map<String,org.eclipse.aether.named.NamedLockFactory> createNamedLockFactories()
      Deprecated.
    • getNameMappers

      public final Map<String,org.eclipse.aether.internal.impl.synccontext.named.NameMapper> getNameMappers()
      Deprecated.
    • createNameMappers

      protected Map<String,org.eclipse.aether.internal.impl.synccontext.named.NameMapper> createNameMappers()
      Deprecated.
    • getNamedLockFactoryAdapterFactory

      public final org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactory getNamedLockFactoryAdapterFactory()
      Deprecated.
    • createNamedLockFactoryAdapterFactory

      protected org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapterFactory createNamedLockFactoryAdapterFactory()
      Deprecated.
    • getSyncContextFactory

      public final org.eclipse.aether.spi.synccontext.SyncContextFactory getSyncContextFactory()
      Deprecated.
    • createSyncContextFactory

      protected org.eclipse.aether.spi.synccontext.SyncContextFactory createSyncContextFactory()
      Deprecated.
    • getChecksumAlgorithmFactories

      public final Map<String,org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> getChecksumAlgorithmFactories()
      Deprecated.
    • createChecksumAlgorithmFactories

      protected Map<String,org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactory> createChecksumAlgorithmFactories()
      Deprecated.
    • getChecksumAlgorithmFactorySelector

      public final org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector getChecksumAlgorithmFactorySelector()
      Deprecated.
    • createChecksumAlgorithmFactorySelector

      protected org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithmFactorySelector createChecksumAlgorithmFactorySelector()
      Deprecated.
    • getArtifactPredicateFactory

      public final org.eclipse.aether.spi.artifact.ArtifactPredicateFactory getArtifactPredicateFactory()
      Deprecated.
    • createArtifactPredicateFactory

      protected org.eclipse.aether.spi.artifact.ArtifactPredicateFactory createArtifactPredicateFactory()
      Deprecated.
    • getRepositoryLayoutFactories

      public final Map<String,org.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory> getRepositoryLayoutFactories()
      Deprecated.
    • createRepositoryLayoutFactories

      protected Map<String,org.eclipse.aether.spi.connector.layout.RepositoryLayoutFactory> createRepositoryLayoutFactories()
      Deprecated.
    • getRepositoryLayoutProvider

      public final org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider getRepositoryLayoutProvider()
      Deprecated.
    • createRepositoryLayoutProvider

      protected org.eclipse.aether.spi.connector.layout.RepositoryLayoutProvider createRepositoryLayoutProvider()
      Deprecated.
    • getLocalRepositoryProvider

      public final org.eclipse.aether.impl.LocalRepositoryProvider getLocalRepositoryProvider()
      Deprecated.
    • createLocalRepositoryProvider

      protected org.eclipse.aether.impl.LocalRepositoryProvider createLocalRepositoryProvider()
      Deprecated.
    • getRemoteRepositoryManager

      public final org.eclipse.aether.impl.RemoteRepositoryManager getRemoteRepositoryManager()
      Deprecated.
    • createRemoteRepositoryManager

      protected org.eclipse.aether.impl.RemoteRepositoryManager createRemoteRepositoryManager()
      Deprecated.
    • getRemoteRepositoryFilterSources

      public final Map<String,org.eclipse.aether.spi.connector.filter.RemoteRepositoryFilterSource> getRemoteRepositoryFilterSources()
      Deprecated.
    • createRemoteRepositoryFilterSources

      protected Map<String,org.eclipse.aether.spi.connector.filter.RemoteRepositoryFilterSource> createRemoteRepositoryFilterSources()
      Deprecated.
    • getRemoteRepositoryFilterManager

      public final org.eclipse.aether.impl.RemoteRepositoryFilterManager getRemoteRepositoryFilterManager()
      Deprecated.
    • createRemoteRepositoryFilterManager

      protected org.eclipse.aether.impl.RemoteRepositoryFilterManager createRemoteRepositoryFilterManager()
      Deprecated.
    • getRepositoryListeners

      public final Map<String,org.eclipse.aether.RepositoryListener> getRepositoryListeners()
      Deprecated.
    • createRepositoryListeners

      protected Map<String,org.eclipse.aether.RepositoryListener> createRepositoryListeners()
      Deprecated.
    • getRepositoryEventDispatcher

      public final org.eclipse.aether.impl.RepositoryEventDispatcher getRepositoryEventDispatcher()
      Deprecated.
    • createRepositoryEventDispatcher

      protected org.eclipse.aether.impl.RepositoryEventDispatcher createRepositoryEventDispatcher()
      Deprecated.
    • getTrustedChecksumsSources

      public final Map<String,org.eclipse.aether.spi.checksums.TrustedChecksumsSource> getTrustedChecksumsSources()
      Deprecated.
    • createTrustedChecksumsSources

      protected Map<String,org.eclipse.aether.spi.checksums.TrustedChecksumsSource> createTrustedChecksumsSources()
      Deprecated.
    • getProvidedChecksumsSources

      public final Map<String,org.eclipse.aether.spi.checksums.ProvidedChecksumsSource> getProvidedChecksumsSources()
      Deprecated.
    • createProvidedChecksumsSources

      protected Map<String,org.eclipse.aether.spi.checksums.ProvidedChecksumsSource> createProvidedChecksumsSources()
      Deprecated.
    • getChecksumExtractorStrategies

      public final Map<String,org.eclipse.aether.spi.connector.transport.http.ChecksumExtractorStrategy> getChecksumExtractorStrategies()
      Deprecated.
    • createChecksumExtractorStrategies

      protected Map<String,org.eclipse.aether.spi.connector.transport.http.ChecksumExtractorStrategy> createChecksumExtractorStrategies()
      Deprecated.
    • getChecksumExtractor

      public final org.eclipse.aether.spi.connector.transport.http.ChecksumExtractor getChecksumExtractor()
      Deprecated.
    • createChecksumExtractor

      protected org.eclipse.aether.spi.connector.transport.http.ChecksumExtractor createChecksumExtractor()
      Deprecated.
    • getTransporterFactories

      public final Map<String,org.eclipse.aether.spi.connector.transport.TransporterFactory> getTransporterFactories()
      Deprecated.
    • createTransporterFactories

      protected Map<String,org.eclipse.aether.spi.connector.transport.TransporterFactory> createTransporterFactories()
      Deprecated.
    • getTransporterProvider

      public final org.eclipse.aether.spi.connector.transport.TransporterProvider getTransporterProvider()
      Deprecated.
    • createTransporterProvider

      protected org.eclipse.aether.spi.connector.transport.TransporterProvider createTransporterProvider()
      Deprecated.
    • getBasicRepositoryConnectorFactory

      public final org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory getBasicRepositoryConnectorFactory()
      Deprecated.
    • createBasicRepositoryConnectorFactory

      protected org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory createBasicRepositoryConnectorFactory()
      Deprecated.
    • getRepositoryConnectorFactories

      public final Map<String,org.eclipse.aether.spi.connector.RepositoryConnectorFactory> getRepositoryConnectorFactories()
      Deprecated.
    • createRepositoryConnectorFactories

      protected Map<String,org.eclipse.aether.spi.connector.RepositoryConnectorFactory> createRepositoryConnectorFactories()
      Deprecated.
    • getRepositoryConnectorProvider

      public final org.eclipse.aether.impl.RepositoryConnectorProvider getRepositoryConnectorProvider()
      Deprecated.
    • createRepositoryConnectorProvider

      protected org.eclipse.aether.impl.RepositoryConnectorProvider createRepositoryConnectorProvider()
      Deprecated.
    • getInstaller

      public final org.eclipse.aether.impl.Installer getInstaller()
      Deprecated.
    • createInstaller

      protected org.eclipse.aether.impl.Installer createInstaller()
      Deprecated.
    • getDeployer

      public final org.eclipse.aether.impl.Deployer getDeployer()
      Deprecated.
    • createDeployer

      protected org.eclipse.aether.impl.Deployer createDeployer()
      Deprecated.
    • getDependencyCollectorDelegates

      public final Map<String,org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate> getDependencyCollectorDelegates()
      Deprecated.
    • createDependencyCollectorDelegates

      protected Map<String,org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate> createDependencyCollectorDelegates()
      Deprecated.
    • getDependencyCollector

      public final org.eclipse.aether.impl.DependencyCollector getDependencyCollector()
      Deprecated.
    • createDependencyCollector

      protected org.eclipse.aether.impl.DependencyCollector createDependencyCollector()
      Deprecated.
    • getArtifactResolverPostProcessors

      public final Map<String,org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> getArtifactResolverPostProcessors()
      Deprecated.
    • createArtifactResolverPostProcessors

      protected Map<String,org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> createArtifactResolverPostProcessors()
      Deprecated.
    • getArtifactResolver

      public final org.eclipse.aether.impl.ArtifactResolver getArtifactResolver()
      Deprecated.
    • createArtifactResolver

      protected org.eclipse.aether.impl.ArtifactResolver createArtifactResolver()
      Deprecated.
    • getMetadataResolver

      public final org.eclipse.aether.impl.MetadataResolver getMetadataResolver()
      Deprecated.
    • createMetadataResolver

      protected org.eclipse.aether.impl.MetadataResolver createMetadataResolver()
      Deprecated.
    • getVersionScheme

      public final org.eclipse.aether.version.VersionScheme getVersionScheme()
      Deprecated.
    • createVersionScheme

      protected org.eclipse.aether.version.VersionScheme createVersionScheme()
      Deprecated.
    • getArtifactGeneratorFactories

      public final Map<String,org.eclipse.aether.spi.artifact.generator.ArtifactGeneratorFactory> getArtifactGeneratorFactories()
      Deprecated.
    • createArtifactGeneratorFactories

      protected Map<String,org.eclipse.aether.spi.artifact.generator.ArtifactGeneratorFactory> createArtifactGeneratorFactories()
      Deprecated.
    • getArtifactDecoratorFactories

      public final Map<String,org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory> getArtifactDecoratorFactories()
      Deprecated.
    • createArtifactDecoratorFactories

      protected Map<String,org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory> createArtifactDecoratorFactories()
      Deprecated.
    • getMetadataGeneratorFactories

      public final Map<String,org.eclipse.aether.impl.MetadataGeneratorFactory> getMetadataGeneratorFactories()
      Deprecated.
    • createMetadataGeneratorFactories

      protected Map<String,org.eclipse.aether.impl.MetadataGeneratorFactory> createMetadataGeneratorFactories()
      Deprecated.
    • getMavenArtifactRelocationSources

      public final LinkedHashMap<String,MavenArtifactRelocationSource> getMavenArtifactRelocationSources()
      Deprecated.
    • createMavenArtifactRelocationSources

      protected LinkedHashMap<String,MavenArtifactRelocationSource> createMavenArtifactRelocationSources()
      Deprecated.
    • getArtifactDescriptorReader

      public final org.eclipse.aether.impl.ArtifactDescriptorReader getArtifactDescriptorReader()
      Deprecated.
    • createArtifactDescriptorReader

      protected org.eclipse.aether.impl.ArtifactDescriptorReader createArtifactDescriptorReader()
      Deprecated.
    • getVersionResolver

      public final org.eclipse.aether.impl.VersionResolver getVersionResolver()
      Deprecated.
    • createVersionResolver

      protected org.eclipse.aether.impl.VersionResolver createVersionResolver()
      Deprecated.
    • getVersionRangeResolver

      public final org.eclipse.aether.impl.VersionRangeResolver getVersionRangeResolver()
      Deprecated.
    • createVersionRangeResolver

      protected org.eclipse.aether.impl.VersionRangeResolver createVersionRangeResolver()
      Deprecated.
    • getModelBuilder

      public final ModelBuilder getModelBuilder()
      Deprecated.
    • createModelBuilder

      protected ModelBuilder createModelBuilder()
      Deprecated.
    • getRepositorySystem

      public final org.eclipse.aether.RepositorySystem getRepositorySystem()
      Deprecated.
    • createRepositorySystem

      protected org.eclipse.aether.RepositorySystem createRepositorySystem()
      Deprecated.
    • get

      public org.eclipse.aether.RepositorySystem get()
      Deprecated.
      Specified by:
      get in interface Supplier<org.eclipse.aether.RepositorySystem>