@Component(role=MirrorSelector.class) public class DefaultMirrorSelector extends Object implements MirrorSelector
Constructor and Description |
---|
DefaultMirrorSelector() |
Modifier and Type | Method and Description |
---|---|
Mirror |
getMirror(ArtifactRepository repository,
List<Mirror> mirrors)
Determines the mirror for the specified repository.
|
public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors)
MirrorSelector
getMirror
in interface MirrorSelector
repository
- The repository to determine the mirror for, must not be null
.mirrors
- The available mirrors, may be null
.null
if no mirror matched.Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.