Package org.eclipse.aether.internal.impl
Class DefaultRemoteRepositoryManager
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager
- All Implemented Interfaces:
RemoteRepositoryManager
@Singleton
@Named
public class DefaultRemoteRepositoryManager
extends Object
implements RemoteRepositoryManager
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRemoteRepositoryManager(UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider) -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.aether.repository.RemoteRepository> aggregateRepositories(org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.repository.RemoteRepository> dominantRepositories, List<org.eclipse.aether.repository.RemoteRepository> recessiveRepositories, boolean recessiveIsRaw) Aggregates repository definitions by merging duplicate repositories and optionally applies mirror, proxy and authentication settings from the supplied session.org.eclipse.aether.repository.RepositoryPolicygetPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository, boolean releases, boolean snapshots) Gets the effective repository policy for the specified remote repository by merging the applicable snapshot/release policy of the repository with global settings from the supplied session.
-
Constructor Details
-
DefaultRemoteRepositoryManager
@Inject public DefaultRemoteRepositoryManager(UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider)
-
-
Method Details
-
aggregateRepositories
public List<org.eclipse.aether.repository.RemoteRepository> aggregateRepositories(org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.repository.RemoteRepository> dominantRepositories, List<org.eclipse.aether.repository.RemoteRepository> recessiveRepositories, boolean recessiveIsRaw) Description copied from interface:RemoteRepositoryManagerAggregates repository definitions by merging duplicate repositories and optionally applies mirror, proxy and authentication settings from the supplied session.- Specified by:
aggregateRepositoriesin interfaceRemoteRepositoryManager- Parameters:
session- The repository session during which the repositories will be accessed, must not benull.dominantRepositories- The current list of remote repositories to merge the new definitions into, must not benull.recessiveRepositories- The remote repositories to merge into the existing list, must not benull.recessiveIsRaw-trueif the recessive repository definitions have not yet been subjected to mirror, proxy and authentication settings,falseotherwise.- Returns:
- The aggregated list of remote repositories, never
null. - See Also:
-
getPolicy
public org.eclipse.aether.repository.RepositoryPolicy getPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository, boolean releases, boolean snapshots) Description copied from interface:RemoteRepositoryManagerGets the effective repository policy for the specified remote repository by merging the applicable snapshot/release policy of the repository with global settings from the supplied session.- Specified by:
getPolicyin interfaceRemoteRepositoryManager- Parameters:
session- The repository session during which the repository will be accessed, must not benull.repository- The remote repository to determine the effective policy for, must not benull.releases-trueif the policy for release artifacts needs to be considered,falseif not.snapshots-trueif the policy for snapshot artifacts needs to be considered,falseif not.- Returns:
- The effective repository policy, never
null. - See Also:
-