Class GuiceProvisionRenderer


  • public class GuiceProvisionRenderer
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String render​(com.google.common.collect.ListMultimap<com.google.inject.Binding<?>,​java.time.Duration> provisions)
      Render provisions report.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GuiceProvisionRenderer

        public GuiceProvisionRenderer()
    • Method Detail

      • render

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