protected void configure()

in src/main/java/com/googlesource/gerrit/plugins/importer/Module.java [34:78]


  protected void configure() {
    bind(CapabilityDefinition.class)
        .annotatedWith(Exports.named(ImportCapability.ID))
        .to(ImportCapability.class);
    bind(CapabilityDefinition.class)
        .annotatedWith(Exports.named(CopyProjectCapability.ID))
        .to(CopyProjectCapability.class);
    install(
        new RestApiModule() {
          @Override
          protected void configure() {
            DynamicMap.mapOf(binder(), IMPORT_PROJECT_KIND);
            DynamicMap.mapOf(binder(), IMPORT_GROUP_KIND);

            child(CONFIG_KIND, "projects").to(ProjectsCollection.class);
            get(IMPORT_PROJECT_KIND).to(GetImportedProject.class);
            put(IMPORT_PROJECT_KIND, "resume").to(ResumeProjectImport.class);
            delete(IMPORT_PROJECT_KIND).to(CompleteProjectImport.class);

            put(PROJECT_KIND, "copy").to(CopyProject.class);
            put(PROJECT_KIND, "copy.resume").to(ResumeCopyProject.class);
            put(PROJECT_KIND, "import.resume").to(ResumeProjectImport.OnProjects.class);
            post(PROJECT_KIND, "delete").to(CompleteProjectImport.OnProjects.class);

            child(CONFIG_KIND, "groups").to(GroupsCollection.class);
          }
        });
    bind(LifecycleListener.class).annotatedWith(UniqueAnnotations.create()).to(ImportLog.class);
    bind(OpenRepositoryStep.class);
    bind(ConfigureRepositoryStep.class);
    bind(ConfigureProjectStep.class);
    bind(GitFetchStep.class);
    bind(AccountUtil.class);
    factory(ImportProject.Factory.class);
    factory(ReplayChangesStep.Factory.class);
    factory(ReplayRevisionsStep.Factory.class);
    factory(ReplayInlineCommentsStep.Factory.class);
    factory(ReplayMessagesStep.Factory.class);
    factory(AddApprovalsStep.Factory.class);
    factory(AddHashtagsStep.Factory.class);
    factory(InsertLinkToOriginalChangeStep.Factory.class);
    factory(ImportGroupsStep.Factory.class);
    DynamicSet.bind(binder(), TopMenu.class).to(ImportMenu.class);
    factory(ImportGroup.Factory.class);
  }