1package org.apache.maven.repository.internal;
23/*4 * Licensed to the Apache Software Foundation (ASF) under one5 * or more contributor license agreements. See the NOTICE file6 * distributed with this work for additional information7 * regarding copyright ownership. The ASF licenses this file8 * to you under the Apache License, Version 2.0 (the9 * "License"); you may not use this file except in compliance10 * with the License. You may obtain a copy of the License at11 *12 * http://www.apache.org/licenses/LICENSE-2.013 *14 * Unless required by applicable law or agreed to in writing,15 * software distributed under the License is distributed on an16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY17 * KIND, either express or implied. See the License for the18 * specific language governing permissions and limitations19 * under the License.20 */2122import org.sonatype.aether.impl.ArtifactDescriptorReader;
23import org.sonatype.aether.impl.MetadataGeneratorFactory;
24import org.sonatype.aether.impl.VersionRangeResolver;
25import org.sonatype.aether.impl.VersionResolver;
2627/**28 * A simple service locator that is already setup with all components from this library. To acquire a complete29 * repository system, clients need to add some repository connectors for remote transfers. <em>Note:</em> This component30 * is meant to assists those clients that employ the repository systems outside of an IoC container, Maven plugins31 * should instead always use regular dependency injection to acquire the repository system.32 * 33 * @author Benjamin Bentmann34 * @deprecated use {@link MavenServiceLocator} instead, which is more explicit.35 */36publicclassDefaultServiceLocator37extends org.sonatype.aether.impl.internal.DefaultServiceLocator
38 {
3940/**41 * Creates a new service locator that already knows about all service implementations included this library.42 */43publicDefaultServiceLocator()
44 {
45 addService( ArtifactDescriptorReader.class, DefaultArtifactDescriptorReader.class );
46 addService( VersionResolver.class, DefaultVersionResolver.class );
47 addService( VersionRangeResolver.class, DefaultVersionRangeResolver.class );
48 addService( MetadataGeneratorFactory.class, SnapshotMetadataGeneratorFactory.class );
49 addService( MetadataGeneratorFactory.class, VersionsMetadataGeneratorFactory.class );
50 }
5152 }