protected void configure()

in src/main/java/com/googlesource/gerrit/plugins/zuulstatus/Module.java [28:42]


  protected void configure() {
    DynamicSet.bind(binder(), WebUiPlugin.class)
        .toInstance(new JavaScriptPlugin("zuul-status.js"));

    get(PROJECT_KIND, "config").to(GetConfig.class);

    // TODO: these annotations only apply to GWT UIs...
    bind(ProjectConfigEntry.class)
	.annotatedWith(Exports.named("url"))
	.toInstance(new ProjectConfigEntry("Top-level Zuul URL", null));

    bind(ProjectConfigEntry.class)
	.annotatedWith(Exports.named("tenant"))
	.toInstance(new ProjectConfigEntry("Zuul v3 tenant name -- leave empty on Zuul v2", null));
  }