Java 类org.apache.maven.model.locator.ModelLocator 实例源码

项目:spring-cloud-function    文件:DependencyResolver.java   
@Override
protected void configure() {
    bind(ModelLocator.class).to(DefaultModelLocator.class).in(Singleton.class);
    bind(ModelReader.class).to(DefaultModelReader.class).in(Singleton.class);
    bind(ModelValidator.class).to(DefaultModelValidator.class).in(Singleton.class);
    bind(RepositoryConnectorFactory.class).to(BasicRepositoryConnectorFactory.class)
            .in(Singleton.class);
    bind(ArtifactDescriptorReader.class) //
            .to(DefaultArtifactDescriptorReader.class).in(Singleton.class);
    bind(VersionResolver.class) //
            .to(DefaultVersionResolver.class).in(Singleton.class);
    bind(VersionRangeResolver.class) //
            .to(DefaultVersionRangeResolver.class).in(Singleton.class);
    bind(MetadataGeneratorFactory.class).annotatedWith(Names.named("snapshot")) //
            .to(SnapshotMetadataGeneratorFactory.class).in(Singleton.class);
    bind(MetadataGeneratorFactory.class).annotatedWith(Names.named("versions")) //
            .to(VersionsMetadataGeneratorFactory.class).in(Singleton.class);
    bind(TransporterFactory.class).annotatedWith(Names.named("http"))
            .to(HttpTransporterFactory.class).in(Singleton.class);
    bind(TransporterFactory.class).annotatedWith(Names.named("file"))
            .to(FileTransporterFactory.class).in(Singleton.class);
}
项目:oceano    文件:DefaultModelProcessor.java   
public DefaultModelProcessor setModelLocator( ModelLocator locator )
{
    this.locator = locator;
    return this;
}
项目:oceano    文件:DefaultModelBuilderFactory.java   
protected ModelLocator newModelLocator()
{
    return new DefaultModelLocator();
}