@Singleton @Named public class DefaultRemoteRepositoryManager extends Object implements RemoteRepositoryManager, Service
| Constructor and Description |
|---|
DefaultRemoteRepositoryManager() |
| Modifier and Type | Method and Description |
|---|---|
List<RemoteRepository> |
aggregateRepositories(RepositorySystemSession session,
List<RemoteRepository> dominantRepositories,
List<RemoteRepository> recessiveRepositories,
boolean recessiveIsRaw)
Aggregates repository definitions by merging duplicate repositories and optionally applies mirror, proxy and
authentication settings from the supplied session.
|
RepositoryPolicy |
getPolicy(RepositorySystemSession session,
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.
|
void |
initService(ServiceLocator locator) |
DefaultRemoteRepositoryManager |
setChecksumPolicyProvider(ChecksumPolicyProvider checksumPolicyProvider) |
DefaultRemoteRepositoryManager |
setUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer) |
public DefaultRemoteRepositoryManager()
public void initService(ServiceLocator locator)
initService in interface Servicepublic DefaultRemoteRepositoryManager setUpdatePolicyAnalyzer(UpdatePolicyAnalyzer updatePolicyAnalyzer)
public DefaultRemoteRepositoryManager setChecksumPolicyProvider(ChecksumPolicyProvider checksumPolicyProvider)
public List<RemoteRepository> aggregateRepositories(RepositorySystemSession session, List<RemoteRepository> dominantRepositories, List<RemoteRepository> recessiveRepositories, boolean recessiveIsRaw)
RemoteRepositoryManageraggregateRepositories in interface RemoteRepositoryManagersession - The repository session during which the repositories will be accessed, must not be null.dominantRepositories - The current list of remote repositories to merge the new definitions into, must not
be null.recessiveRepositories - The remote repositories to merge into the existing list, must not be null.recessiveIsRaw - true if the recessive repository definitions have not yet been subjected to mirror,
proxy and authentication settings, false otherwise.null.RepositorySystemSession.getMirrorSelector(),
RepositorySystemSession.getProxySelector(),
RepositorySystemSession.getAuthenticationSelector()public RepositoryPolicy getPolicy(RepositorySystemSession session, RemoteRepository repository, boolean releases, boolean snapshots)
RemoteRepositoryManagergetPolicy in interface RemoteRepositoryManagersession - The repository session during which the repository will be accessed, must not be null.repository - The remote repository to determine the effective policy for, must not be null.releases - true if the policy for release artifacts needs to be considered, false if not.snapshots - true if the policy for snapshot artifacts needs to be considered, false if not.null.RepositorySystemSession.getChecksumPolicy(),
RepositorySystemSession.getUpdatePolicy()Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.