Class ProviderMethodsModule
java.lang.Object
org.elasticsearch.common.inject.internal.ProviderMethodsModule
- All Implemented Interfaces:
Module
Creates bindings to methods annotated with @
Provides
. Use the scope and
binding annotations on the provider method to configure the binding.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Contributes bindings and other configurations for this module tobinder
.boolean
static Module
Returns a module which creates bindings for provider methods from the given module.static Module
Returns a module which creates bindings for provider methods from the given object.List<ProviderMethod<?>>
getProviderMethods(Binder binder)
int
hashCode()
-
Method Details
-
forModule
Returns a module which creates bindings for provider methods from the given module. -
forObject
Returns a module which creates bindings for provider methods from the given object. This is useful notably for GIN -
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
-
equals
-
hashCode
public int hashCode()
-