Class GuiceBindingsRenderer

java.lang.Object
ru.vyarus.dropwizard.guice.debug.report.guice.GuiceBindingsRenderer
All Implemented Interfaces:
ReportRenderer<GuiceConfig>

public class GuiceBindingsRenderer extends Object implements ReportRenderer<GuiceConfig>
Renders guice bindings as modules tree. Bindings information is analyzed using guice SPI directly from modules in order to see all listeners, scopes and aop registrations. Report identifies bindings overrides.

Report use stack trace element convention for binding declaration in order to let intellij idea (or other tools) to automatically apply link to source code.

Report sections:

  • Bindings from declared modules (as tree)
  • Bindings from overriding modules (as tree)
  • JIT bindings (if any)
  • Binding chains (to see actual binding resolution path)

Used markers:

  • EXTENSION - extension binding
  • REMOVED - extension or module disabled and binding(s) removed
  • AOP - bean affected by guice AOP
  • OVERRIDDEN (only in modules tree) - binding is overridden with binding from overriding module
  • OVERRIDES (only in overriding modules tree) - binding override something in main modules
  • WEB - indicates guice ServletModules
  • PRIVATE - indicates private module
Since:
13.08.2019
  • Constructor Details

    • GuiceBindingsRenderer

      public GuiceBindingsRenderer(com.google.inject.Injector injector)
      Create bindings renderer.
      Parameters:
      injector - injector
  • Method Details