public interface ProvidesMethodBinding<T> extends HasDependencies
Provides
binding or binding produced by a ModuleAnnotatedMethodScanner
.Modifier and Type | Method and Description |
---|---|
java.lang.annotation.Annotation |
getAnnotation()
Returns the annotation that caused this binding to be created.
|
java.lang.Object |
getEnclosingInstance()
Returns the instance of the object the method is defined in.
|
Key<T> |
getKey()
Returns the key of the binding.
|
java.lang.reflect.Method |
getMethod()
Returns the method this binding uses.
|
getDependencies
java.lang.reflect.Method getMethod()
java.lang.Object getEnclosingInstance()
java.lang.annotation.Annotation getAnnotation()
@Provides
methods,
this is an instance of the @Provides
annotation. For bindings from ModuleAnnotatedMethodScanner
, this is the annotation that caused the scanner to produce the
binding.