Class RepositorySystemSupplier
- All Implemented Interfaces:
Supplier<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 ArtifactDescriptorReader
protected ArtifactResolver
protected Map
<String, ArtifactResolverPostProcessor> protected BasicRepositoryConnectorFactory
protected Map
<String, ChecksumAlgorithmFactory> protected ChecksumAlgorithmFactorySelector
protected ChecksumExtractor
protected Map
<String, ChecksumExtractorStrategy> protected ChecksumPolicyProvider
protected ChecksumProcessor
protected DependencyCollector
protected Map
<String, DependencyCollectorDelegate> protected Deployer
protected Installer
protected LocalPathComposer
protected LocalPathPrefixComposerFactory
protected LocalRepositoryProvider
protected LinkedHashMap
<String, org.apache.maven.repository.internal.MavenArtifactRelocationSource> protected Map
<String, MetadataGeneratorFactory> protected MetadataResolver
protected org.apache.maven.model.building.ModelBuilder
protected org.apache.maven.repository.internal.ModelCacheFactory
protected Map
<String, NamedLockFactory> protected NamedLockFactoryAdapterFactory
protected Map
<String, NameMapper> protected OfflineController
protected PathProcessor
protected Map
<String, ProvidedChecksumsSource> protected RemoteRepositoryFilterManager
protected Map
<String, RemoteRepositoryFilterSource> protected RemoteRepositoryManager
protected Map
<String, RepositoryConnectorFactory> protected RepositoryConnectorProvider
protected RepositoryEventDispatcher
protected Map
<String, RepositoryLayoutFactory> protected RepositoryLayoutProvider
protected Map
<String, RepositoryListener> protected RepositorySystem
protected RepositorySystemLifecycle
protected SyncContextFactory
protected TrackingFileManager
protected Map
<String, TransporterFactory> protected TransporterProvider
protected Map
<String, TrustedChecksumsSource> protected UpdateCheckManager
protected UpdatePolicyAnalyzer
protected VersionRangeResolver
protected VersionResolver
protected VersionScheme
get()
final ArtifactDescriptorReader
final ArtifactResolver
final Map
<String, ChecksumAlgorithmFactory> final ChecksumExtractor
final Map
<String, ChecksumExtractorStrategy> final ChecksumPolicyProvider
final ChecksumProcessor
final DependencyCollector
final Map
<String, DependencyCollectorDelegate> final Deployer
final Installer
final LocalPathComposer
final LocalRepositoryProvider
final LinkedHashMap
<String, org.apache.maven.repository.internal.MavenArtifactRelocationSource> final Map
<String, MetadataGeneratorFactory> final MetadataResolver
final org.apache.maven.model.building.ModelBuilder
final org.apache.maven.repository.internal.ModelCacheFactory
final Map
<String, NamedLockFactory> final Map
<String, NameMapper> final OfflineController
final PathProcessor
final Map
<String, ProvidedChecksumsSource> final RemoteRepositoryManager
final Map
<String, RepositoryConnectorFactory> final Map
<String, RepositoryLayoutFactory> final RepositoryLayoutProvider
final Map
<String, RepositoryListener> final RepositorySystem
final SyncContextFactory
final TrackingFileManager
final Map
<String, TransporterFactory> final TransporterProvider
final Map
<String, TrustedChecksumsSource> final UpdateCheckManager
final UpdatePolicyAnalyzer
final VersionRangeResolver
final VersionResolver
final VersionScheme
-
Constructor Details
-
RepositorySystemSupplier
public RepositorySystemSupplier()
-
-
Method Details
-
getPathProcessor
-
createPathProcessor
-
getChecksumProcessor
-
createChecksumProcessor
-
getTrackingFileManager
-
createTrackingFileManager
-
getLocalPathComposer
-
createLocalPathComposer
-
getLocalPathPrefixComposerFactory
-
createLocalPathPrefixComposerFactory
-
getRepositorySystemLifecycle
-
createRepositorySystemLifecycle
-
getOfflineController
-
createOfflineController
-
getUpdatePolicyAnalyzer
-
createUpdatePolicyAnalyzer
-
getChecksumPolicyProvider
-
createChecksumPolicyProvider
-
getUpdateCheckManager
-
createUpdateCheckManager
-
getNamedLockFactories
-
createNamedLockFactories
-
getNameMappers
-
createNameMappers
-
getNamedLockFactoryAdapterFactory
-
createNamedLockFactoryAdapterFactory
-
getSyncContextFactory
-
createSyncContextFactory
-
getChecksumAlgorithmFactories
-
createChecksumAlgorithmFactories
-
getChecksumAlgorithmFactorySelector
-
createChecksumAlgorithmFactorySelector
-
getRepositoryLayoutFactories
-
createRepositoryLayoutFactories
-
getRepositoryLayoutProvider
-
createRepositoryLayoutProvider
-
getLocalRepositoryProvider
-
createLocalRepositoryProvider
-
getRemoteRepositoryManager
-
createRemoteRepositoryManager
-
getRemoteRepositoryFilterSources
-
createRemoteRepositoryFilterSources
-
getRemoteRepositoryFilterManager
-
createRemoteRepositoryFilterManager
-
getRepositoryListeners
-
createRepositoryListeners
-
getRepositoryEventDispatcher
-
createRepositoryEventDispatcher
-
getTrustedChecksumsSources
-
createTrustedChecksumsSources
-
getProvidedChecksumsSources
-
createProvidedChecksumsSources
-
getChecksumExtractorStrategies
-
createChecksumExtractorStrategies
-
getChecksumExtractor
-
createChecksumExtractor
-
getTransporterFactories
-
createTransporterFactories
-
getTransporterProvider
-
createTransporterProvider
-
getBasicRepositoryConnectorFactory
-
createBasicRepositoryConnectorFactory
-
getRepositoryConnectorFactories
-
createRepositoryConnectorFactories
-
getRepositoryConnectorProvider
-
createRepositoryConnectorProvider
-
getInstaller
-
createInstaller
-
getDeployer
-
createDeployer
-
getDependencyCollectorDelegates
-
createDependencyCollectorDelegates
-
getDependencyCollector
-
createDependencyCollector
-
getArtifactResolverPostProcessors
-
createArtifactResolverPostProcessors
-
getArtifactResolver
-
createArtifactResolver
-
getMetadataResolver
-
createMetadataResolver
-
getVersionScheme
-
createVersionScheme
-
getMetadataGeneratorFactories
-
createMetadataGeneratorFactories
-
getMavenArtifactRelocationSources
public final LinkedHashMap<String,org.apache.maven.repository.internal.MavenArtifactRelocationSource> getMavenArtifactRelocationSources() -
createMavenArtifactRelocationSources
protected LinkedHashMap<String,org.apache.maven.repository.internal.MavenArtifactRelocationSource> createMavenArtifactRelocationSources() -
getArtifactDescriptorReader
-
createArtifactDescriptorReader
-
getVersionResolver
-
createVersionResolver
-
getVersionRangeResolver
-
createVersionRangeResolver
-
getModelBuilder
-
createModelBuilder
-
getModelCacheFactory
-
createModelCacheFactory
-
getRepositorySystem
-
createRepositorySystem
-
get
- Specified by:
get
in interfaceSupplier<RepositorySystem>
-