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 java.lang.Object implements MirrorSelector
DefaultMirrorSelector
-
-
Constructor Summary
Constructors Constructor Description DefaultMirrorSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.maven.settings.MirrorgetMirror(org.apache.maven.artifact.repository.ArtifactRepository repository, java.util.List<org.apache.maven.settings.Mirror> mirrors)Determines the mirror for the specified repository.
-
-
-
Method Detail
-
getMirror
public org.apache.maven.settings.Mirror getMirror(org.apache.maven.artifact.repository.ArtifactRepository repository, java.util.List<org.apache.maven.settings.Mirror> mirrors)Description copied from interface:MirrorSelectorDetermines the mirror for the specified repository.- Specified by:
getMirrorin 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
nullif no mirror matched.
-
-