Package org.apache.maven.repository
Class DefaultMirrorSelector
java.lang.Object
org.apache.maven.repository.DefaultMirrorSelector
- All Implemented Interfaces:
MirrorSelector
@Component(role=MirrorSelector.class)
public class DefaultMirrorSelector
extends Object
implements MirrorSelector
DefaultMirrorSelector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMirror
(ArtifactRepository repository, List<Mirror> mirrors) Determines the mirror for the specified repository.
-
Constructor Details
-
DefaultMirrorSelector
public DefaultMirrorSelector()
-
-
Method Details
-
getMirror
Description copied from interface:MirrorSelector
Determines the mirror for the specified repository.- Specified by:
getMirror
in interfaceMirrorSelector
- Parameters:
repository
- The repository to determine the mirror for, must not benull
.mirrors
- The available mirrors, may benull
.- Returns:
- The mirror specification for the repository or
null
if no mirror matched.
-