Class ProviderMethodsModule
- java.lang.Object
-
- org.elasticsearch.common.inject.internal.ProviderMethodsModule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Binder binder)Contributes bindings and other configurations for this module tobinder.booleanequals(java.lang.Object o)static ModuleforModule(Module module)Returns a module which creates bindings for provider methods from the given module.static ModuleforObject(java.lang.Object object)Returns a module which creates bindings for provider methods from the given object.java.util.List<ProviderMethod<?>>getProviderMethods(Binder binder)inthashCode()
-
-
-
Method Detail
-
forModule
public static Module forModule(Module module)
Returns a module which creates bindings for provider methods from the given module.
-
forObject
public static Module forObject(java.lang.Object object)
Returns a module which creates bindings for provider methods from the given object. This is useful notably for GIN
-
configure
public void configure(Binder binder)
Description copied from interface:ModuleContributes 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 methodsare discovered.
-
getProviderMethods
public java.util.List<ProviderMethod<?>> getProviderMethods(Binder binder)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-