Class GuiceProvisionRenderer

java.lang.Object
ru.vyarus.dropwizard.guice.debug.report.guice.GuiceProvisionRenderer

public class GuiceProvisionRenderer extends Object
Renders guice beans provision (creation) time. The report shows all created beans (including multiple times) with all related binding keys. The report highlights JIT bindings to simplify searching for injection point declaration mistakes (forgotten qualifier).

The report tries to guess incorrect JIT bindings: if there are qualified bindings (with annotation or generic) of the same type exists, then such JIT binding considered suspicious and rendered before the main report.

Since:
24.03.2025
  • Constructor Details

    • GuiceProvisionRenderer

      public GuiceProvisionRenderer()
  • Method Details

    • render

      public String render(com.google.common.collect.ListMultimap<com.google.inject.Binding<?>,Duration> provisions)
      Render provisions report.
      Parameters:
      provisions - collected provisions data
      Returns:
      rendered report