public abstract class MethodBasedModule
extends java.lang.Object
implements com.google.inject.Module
Modifier | Constructor and Description |
---|---|
protected |
MethodBasedModule(java.lang.reflect.Method method,
java.lang.Object owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindToClass(com.google.inject.binder.LinkedBindingBuilder<java.lang.Object> bind,
java.lang.Class<?> value) |
protected void |
bindToInstance(com.google.inject.binder.LinkedBindingBuilder<java.lang.Object> bind,
java.lang.Object instance) |
void |
configure(com.google.inject.Binder binder) |
protected java.lang.reflect.Type |
getFirstTypeParameter(java.lang.reflect.ParameterizedType type) |
java.lang.reflect.Type |
getKeyType() |
java.lang.reflect.Method |
getMethod() |
java.lang.Object |
getOwner() |
java.lang.Object |
invokeMethod(java.lang.Object... parameters) |
boolean |
isClassBinding() |
boolean |
isEager() |
protected boolean |
isSame(java.lang.reflect.Type typeA,
java.lang.reflect.Type typeB) |
boolean |
isSingleton() |
protected java.lang.IllegalStateException |
throwIllegalReturnTypeDeclaration(java.lang.reflect.Method method) |
protected MethodBasedModule(java.lang.reflect.Method method, java.lang.Object owner)
public java.lang.reflect.Method getMethod()
public java.lang.Object getOwner()
public void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module
protected void bindToClass(com.google.inject.binder.LinkedBindingBuilder<java.lang.Object> bind, java.lang.Class<?> value)
protected void bindToInstance(com.google.inject.binder.LinkedBindingBuilder<java.lang.Object> bind, java.lang.Object instance)
protected boolean isSame(java.lang.reflect.Type typeA, java.lang.reflect.Type typeB)
public java.lang.reflect.Type getKeyType()
protected java.lang.reflect.Type getFirstTypeParameter(java.lang.reflect.ParameterizedType type)
protected java.lang.IllegalStateException throwIllegalReturnTypeDeclaration(java.lang.reflect.Method method)
public boolean isClassBinding()
public boolean isEager()
public boolean isSingleton()
public java.lang.Object invokeMethod(java.lang.Object... parameters)