View Javadoc

1   package org.sonatype.aether.repository;
2   
3   /*******************************************************************************
4    * Copyright (c) 2010-2011 Sonatype, Inc.
5    * All rights reserved. This program and the accompanying materials
6    * are made available under the terms of the Eclipse Public License v1.0
7    * which accompanies this distribution, and is available at
8    *   http://www.eclipse.org/legal/epl-v10.html
9    *******************************************************************************/
10  
11  /**
12   * Selects a mirror for a given remote repository.
13   * 
14   * @author Benjamin Bentmann
15   */
16  public interface MirrorSelector
17  {
18  
19      /**
20       * Selects a mirror for the specified repository.
21       * 
22       * @param repository The repository to select a mirror for, must not be {@code null}.
23       * @return The selected mirror or {@code null} if none.
24       * @see RemoteRepository#getMirroredRepositories()
25       */
26      RemoteRepository getMirror( RemoteRepository repository );
27  
28  }