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

io.codemodder.CodeDirectoryModule Maven / Gradle / Ivy

There is a newer version: 0.97.9
Show newest version
package io.codemodder;

import com.google.inject.AbstractModule;
import java.nio.file.Path;
import java.util.Objects;

/** Binds the repository directory for codemods. */
final class CodeDirectoryModule extends AbstractModule {

  private final Path repositoryDir;

  CodeDirectoryModule(final Path repositoryDir) {
    this.repositoryDir = Objects.requireNonNull(repositoryDir);
  }

  @Override
  protected void configure() {
    bind(CodeDirectory.class).toInstance(new DefaultCodeDirectory(repositoryDir));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy