protected void configure()

in src/main/java/com/googlesource/gerrit/plugins/renameproject/Module.java [37:60]


  protected void configure() {
    bind(LifecycleListener.class).annotatedWith(UniqueAnnotations.create()).to(RenameLog.class);
    bind(CacheRenameHandler.class);
    bind(CapabilityDefinition.class)
        .annotatedWith(Exports.named(RENAME_PROJECT))
        .to(RenameProjectCapability.class);
    bind(CapabilityDefinition.class)
        .annotatedWith(Exports.named(RENAME_OWN_PROJECT))
        .to(RenameOwnProjectCapability.class);
    bind(DatabaseRenameHandler.class);
    bind(FilesystemRenameHandler.class);
    bind(RenamePreconditions.class);
    bind(IndexUpdateHandler.class);
    bind(RevertRenameProject.class);
    bind(SshSessionFactory.class).toProvider(RenameReplicationSshSessionFactoryProvider.class);

    install(
        new RestApiModule() {
          @Override
          protected void configure() {
            post(PROJECT_KIND, "rename").to(RenameProject.class);
          }
        });
  }