Package com.google.inject.spi
Interface ProvidesMethodBinding<T>
-
- All Superinterfaces:
HasDependencies
public interface ProvidesMethodBinding<T> extends HasDependencies
An @Providesbinding or binding produced by aModuleAnnotatedMethodScanner.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.annotation.AnnotationgetAnnotation()Returns the annotation that caused this binding to be created.java.lang.ObjectgetEnclosingInstance()Returns the instance of the object the method is defined in.Key<T>getKey()Returns the key of the binding.java.lang.reflect.MethodgetMethod()Returns the method this binding uses.-
Methods inherited from interface com.google.inject.spi.HasDependencies
getDependencies
-
-
-
-
Method Detail
-
getMethod
java.lang.reflect.Method getMethod()
Returns the method this binding uses.
-
getEnclosingInstance
java.lang.Object getEnclosingInstance()
Returns the instance of the object the method is defined in.
-
getAnnotation
java.lang.annotation.Annotation getAnnotation()
Returns the annotation that caused this binding to be created. For@Providesmethods, this is an instance of the@Providesannotation. For bindings fromModuleAnnotatedMethodScanner, this is the annotation that caused the scanner to produce the binding.
-
-