Package dagger.spi

Interface DiagnosticReporter


public interface DiagnosticReporter
An object that BindingGraphPlugins can use to report diagnostics while visiting a BindingGraph.

Note: This API is still experimental and will change.

  • Method Details

    • reportComponent

      void reportComponent(Diagnostic.Kind diagnosticKind, BindingGraph.ComponentNode componentNode, String message)
      Reports a diagnostic for a component. For non-root components, includes information about the path from the root component.
    • reportComponent

      @FormatMethod void reportComponent(Diagnostic.Kind diagnosticKind, BindingGraph.ComponentNode componentNode, String messageFormat, Object firstArg, Object... moreArgs)
      Reports a diagnostic for a component. For non-root components, includes information about the path from the root component.
    • reportBinding

      void reportBinding(Diagnostic.Kind diagnosticKind, BindingGraph.MaybeBinding binding, String message)
      Reports a diagnostic for a binding or missing binding. Includes information about how the binding is reachable from entry points.
    • reportBinding

      @FormatMethod void reportBinding(Diagnostic.Kind diagnosticKind, BindingGraph.MaybeBinding binding, String messageFormat, Object firstArg, Object... moreArgs)
      Reports a diagnostic for a binding or missing binding. Includes information about how the binding is reachable from entry points.
    • reportDependency

      void reportDependency(Diagnostic.Kind diagnosticKind, BindingGraph.DependencyEdge dependencyEdge, String message)
      Reports a diagnostic for a dependency. Includes information about how the dependency is reachable from entry points.
    • reportDependency

      @FormatMethod void reportDependency(Diagnostic.Kind diagnosticKind, BindingGraph.DependencyEdge dependencyEdge, String messageFormat, Object firstArg, Object... moreArgs)
      Reports a diagnostic for a dependency. Includes information about how the dependency is reachable from entry points.
    • reportSubcomponentFactoryMethod

      void reportSubcomponentFactoryMethod(Diagnostic.Kind diagnosticKind, BindingGraph.ChildFactoryMethodEdge childFactoryMethodEdge, String message)
      Reports a diagnostic for a subcomponent factory method.
    • reportSubcomponentFactoryMethod

      @FormatMethod void reportSubcomponentFactoryMethod(Diagnostic.Kind diagnosticKind, BindingGraph.ChildFactoryMethodEdge childFactoryMethodEdge, String messageFormat, Object firstArg, Object... moreArgs)
      Reports a diagnostic for a subcomponent factory method.