Package org.eclipse.sisu.inject
Interface AnnotatedSource
-
public interface AnnotatedSourceBinding source locations can implement this interface to supply annotations to theBeanLocator.- See Also:
Binder.withSource(Object)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(com.google.inject.Binding<?> binding, Class<T> annotationType)Returns the annotation of the given type that is associated with the binding.
-
-
-
Method Detail
-
getAnnotation
<T extends Annotation> T getAnnotation(com.google.inject.Binding<?> binding, Class<T> annotationType)
Returns the annotation of the given type that is associated with the binding.- Parameters:
binding- The bindingannotationType- The annotation type- Returns:
- The associated annotation;
nullif no such annotation exists
-
-