protected void configure()

in src/main/java/com/gerritforge/gerrit/plugins/account/Module.java [31:48]


  protected void configure() {
    install(
        new RestApiModule() {
          @Override
          protected void configure() {
            delete(ACCOUNT_KIND).to(DeleteAccount.class);
          }
        });

    bind(CapabilityDefinition.class)
        .annotatedWith(Exports.named(DeleteAccountCapability.DELETE_ACCOUNT))
        .to(DeleteAccountCapability.class);
    bind(CapabilityDefinition.class)
        .annotatedWith(Exports.named(DeleteOwnAccountCapability.DELETE_OWN_ACCOUNT))
        .to(DeleteOwnAccountCapability.class);

    DynamicSet.bind(binder(), TopMenu.class).to(AccountTopMenu.class);
  }