Package com.google.inject.spi
Interface ProvidesMethodBinding<T>
- All Superinterfaces:
HasDependencies
- All Known Implementing Classes:
ProviderMethod
,ProviderMethod.FastClassProviderMethod
,ProviderMethod.ReflectionProviderMethod
An @
Provides
binding or binding produced by a ModuleAnnotatedMethodScanner
.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the annotation that caused this binding to be created.Returns the instance of the object the method is defined in.getKey()
Returns the key of the binding.Returns the method this binding uses.Methods inherited from interface com.google.inject.spi.HasDependencies
getDependencies
-
Method Details
-
getMethod
Method getMethod()Returns the method this binding uses. -
getEnclosingInstance
Object getEnclosingInstance()Returns the instance of the object the method is defined in. -
getKey
Returns the key of the binding. -
getAnnotation
Annotation getAnnotation()Returns the annotation that caused this binding to be created. For@Provides
methods, this is an instance of the@Provides
annotation. For bindings fromModuleAnnotatedMethodScanner
, this is the annotation that caused the scanner to produce the binding.
-