protected void configure()

in java/com/googlesource/gerrit/plugins/zuulresultssummary/Module.java [31:50]


  protected void configure() {
    // Point to the JavaScript that provides the main functionality of this plugin.
    DynamicSet.bind(binder(), WebUiPlugin.class)
        .toInstance(new JavaScriptPlugin("zuul-results-summary.js"));

    // Register the config endpoint used by the JavaScript client code.
    get(PROJECT_KIND, "config").to(GetConfig.class);

    // Configure UI element to be exposed on the project view
    bind(ProjectConfigEntry.class)
        .annotatedWith(Exports.named(KEY_PLUGIN_ENABLED))
        .toInstance(
            new ProjectConfigEntry(
                "Enable Zuul results summary",
                "false",
                ProjectConfigEntryType.BOOLEAN,
                null,
                false,
                "Parse comment messages and render CI build results on Zuul Summary tab."));
  }