Package dagger.spi
Interface DiagnosticReporter
public interface DiagnosticReporter
An object that
BindingGraphPlugin
s can use to report diagnostics while visiting a BindingGraph
.
Note: This API is still experimental and will change.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reportBinding
(Diagnostic.Kind diagnosticKind, BindingGraph.MaybeBinding binding, String message) Reports a diagnostic for a binding or missing binding.void
reportBinding
(Diagnostic.Kind diagnosticKind, BindingGraph.MaybeBinding binding, String messageFormat, Object firstArg, Object... moreArgs) Reports a diagnostic for a binding or missing binding.void
reportComponent
(Diagnostic.Kind diagnosticKind, BindingGraph.ComponentNode componentNode, String message) Reports a diagnostic for a component.void
reportComponent
(Diagnostic.Kind diagnosticKind, BindingGraph.ComponentNode componentNode, String messageFormat, Object firstArg, Object... moreArgs) Reports a diagnostic for a component.void
reportDependency
(Diagnostic.Kind diagnosticKind, BindingGraph.DependencyEdge dependencyEdge, String message) Reports a diagnostic for a dependency.void
reportDependency
(Diagnostic.Kind diagnosticKind, BindingGraph.DependencyEdge dependencyEdge, String messageFormat, Object firstArg, Object... moreArgs) Reports a diagnostic for a dependency.void
reportSubcomponentFactoryMethod
(Diagnostic.Kind diagnosticKind, BindingGraph.ChildFactoryMethodEdge childFactoryMethodEdge, String message) Reports a diagnostic for a subcomponent factory method.void
reportSubcomponentFactoryMethod
(Diagnostic.Kind diagnosticKind, BindingGraph.ChildFactoryMethodEdge childFactoryMethodEdge, String messageFormat, Object firstArg, Object... moreArgs) Reports a diagnostic for a subcomponent factory method.
-
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.
-