All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.kemitix.dependency.digraph.maven.plugin.DigraphModule Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
package net.kemitix.dependency.digraph.maven.plugin;

import com.google.inject.AbstractModule;

/**
 * Google Guice Configuration.
 *
 * @author pcampbell
 */
class DigraphModule extends AbstractModule {

    private final DependencyData dependencyData = new NodeTreeDependencyData();

    @Override
    protected void configure() {
        bind(DigraphService.class).to(DefaultDigraphService.class);
        bind(DotFileFormatFactory.class).to(DefaultDotFileFormatFactory.class);
        bind(SourceDirectoryProvider.class).to(
                DefaultSourceDirectoryProvider.class);
        bind(SourceFileProvider.class).to(DefaultSourceFileProvider.class);
        bind(SourceFileVisitor.class).to(DefaultSourceFileVisitor.class);
        bind(FileLoader.class).to(DefaultFileLoader.class);
        bind(SourceFileAnalyser.class).to(DefaultSourceFileAnalyser.class);
        bind(DependencyData.class).toInstance(dependencyData);
        bind(ReportGenerator.class).to(DotFileReportGenerator.class);
        bind(ReportWriter.class).to(DefaultReportWriter.class);
        bind(PackageTreeBuilder.class).to(DefaultPackageTreeBuilder.class);
        bind(NodePathGenerator.class).to(DefaultNodePathGenerator.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy