Class CheckedProviderMethodsModule
java.lang.Object
com.google.inject.throwingproviders.CheckedProviderMethodsModule
- All Implemented Interfaces:
Module
Creates bindings to methods annotated with @
CheckedProvides
. Use the scope and
binding annotations on the provider method to configure the binding.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
A provider that returns a logger based on the method name. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Contributes bindings and other configurations for this module tobinder
.(package private) <T> CheckedProviderMethod<T>
createProviderMethod
(Binder binder, Method method, CheckedProvides checkedProvides) boolean
(package private) static Module
Returns a module which creates bindings for provider methods from the given module.(package private) <T> Key<T>
getKey
(Errors errors, TypeLiteral<T> type, Member member, Annotation[] annotations) (package private) List<CheckedProviderMethod<?>>
getProviderMethods
(Binder binder) int
hashCode()
-
Field Details
-
LOGGER_KEY
-
delegate
-
typeLiteral
-
-
Constructor Details
-
CheckedProviderMethodsModule
-
-
Method Details
-
forModule
Returns a module which creates bindings for provider methods from the given module. -
configure
Description copied from interface:Module
Contributes bindings and other configurations for this module tobinder
.Do not invoke this method directly to install submodules. Instead use
Binder.install(Module)
, which ensures thatprovider methods
are discovered. -
getProviderMethods
-
createProviderMethod
<T> CheckedProviderMethod<T> createProviderMethod(Binder binder, Method method, CheckedProvides checkedProvides) -
getKey
-
equals
-
hashCode
public int hashCode()
-