protected void configure()

in src/main/java/com/googlesource/gerrit/plugins/multisite/Module.java [39:66]


  protected void configure() {

    Collection<Message> validationErrors = config.validate();
    if (!validationErrors.isEmpty()) {
      throw new CreationException(validationErrors);
    }

    install(new LibModule());

    listener().to(Log4jMessageLogger.class);
    bind(MessageLogger.class).to(Log4jMessageLogger.class);

    install(new ForwarderModule());

    if (config.cache().synchronize()) {
      install(new CacheModule());
    }
    if (config.event().synchronize()) {
      install(new EventModule(config));
    }
    if (config.index().synchronize()) {
      install(new IndexModule());
    }

    install(new BrokerModule());

    install(new RouterModule());
  }