Class DefaultRemoteRepositoryManager

java.lang.Object
org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager
All Implemented Interfaces:
RemoteRepositoryManager, org.eclipse.aether.spi.locator.Service

@Singleton @Named public class DefaultRemoteRepositoryManager extends Object implements RemoteRepositoryManager, org.eclipse.aether.spi.locator.Service
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    DefaultRemoteRepositoryManager(UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Aggregates repository definitions by merging duplicate repositories and optionally applies mirror, proxy and authentication settings from the supplied session.
    org.eclipse.aether.repository.RepositoryPolicy
    getPolicy(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.
    void
    initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
     
    setChecksumPolicyProvider(org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • initService

      public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
      Specified by:
      initService in interface org.eclipse.aether.spi.locator.Service
    • setUpdatePolicyAnalyzer

    • setChecksumPolicyProvider

      public DefaultRemoteRepositoryManager setChecksumPolicyProvider(org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider)
    • 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: RemoteRepositoryManager
      Aggregates repository definitions by merging duplicate repositories and optionally applies mirror, proxy and authentication settings from the supplied session.
      Specified by:
      aggregateRepositories in interface RemoteRepositoryManager
      Parameters:
      session - 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.
      Returns:
      The aggregated list of remote repositories, never null.
      See Also:
      • RepositorySystemSession.getMirrorSelector()
      • RepositorySystemSession.getProxySelector()
      • RepositorySystemSession.getAuthenticationSelector()
    • 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: RemoteRepositoryManager
      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.
      Specified by:
      getPolicy in interface RemoteRepositoryManager
      Parameters:
      session - 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.
      Returns:
      The effective repository policy, never null.
      See Also:
      • RepositorySystemSession.getChecksumPolicy()
      • RepositorySystemSession.getUpdatePolicy()