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