Class ErrorProneInjector
java.lang.Object
com.google.errorprone.scanner.ErrorProneInjector
An injector for ErrorProne.
This implements a very simplified subset of the functionality that Guice does. Specifically, it allows injecting only non-generic classes, and treats everything as a singleton within a given compilation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Indicates that there was a runtime failure while providing an instance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddBinding
(Class<T> clazz, T instance) static ErrorProneInjector
create()
static <T> Optional
<Constructor<T>> findConstructor
(Class<T> clazz) <T> T
getInstance
(Class<T> clazz)
-
Constructor Details
-
ErrorProneInjector
public ErrorProneInjector()
-
-
Method Details
-
create
-
addBinding
-
getInstance
-
findConstructor
-