public interface AnnotatedSource
BeanLocator.Binder.withSource(Object)| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
Returns the annotation of the given type that is associated with the binding.
|
<T extends java.lang.annotation.Annotation> T getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
binding - The bindingannotationType - The annotation typenull if no such annotation exists