|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.inject.internal.ProviderMethodsModule
public final class ProviderMethodsModule
Creates bindings to methods annotated with @Provides
. Use the scope and
binding annotations on the provider method to configure the binding.
Method Summary | |
---|---|
void |
configure(Binder binder)
Contributes bindings and other configurations for this module to binder . |
boolean |
equals(java.lang.Object o)
|
static Module |
forModule(Module module)
Returns a module which creates bindings for provider methods from the given module. |
static Module |
forObject(java.lang.Object object)
Returns a module which creates bindings for provider methods from the given object. |
java.util.List<ProviderMethod<?>> |
getProviderMethods(Binder binder)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Module forModule(Module module)
public static Module forObject(java.lang.Object object)
public void configure(Binder binder)
Module
binder
.
Do not invoke this method directly to install submodules. Instead use
Binder.install(Module)
, which ensures that provider methods
are
discovered.
configure
in interface Module
public java.util.List<ProviderMethod<?>> getProviderMethods(Binder binder)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |