Interface AnnotatedSource

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T extends java.lang.annotation.Annotation>
      T
      getAnnotation​(com.google.inject.Binding<?> binding, java.lang.Class<T> annotationType)
      Returns the annotation of the given type that is associated with the binding.
    • Method Detail

      • getAnnotation

        <T extends java.lang.annotation.Annotation> T getAnnotation​(com.google.inject.Binding<?> binding,
                                                                    java.lang.Class<T> annotationType)
        Returns the annotation of the given type that is associated with the binding.
        Parameters:
        binding - The binding
        annotationType - The annotation type
        Returns:
        The associated annotation; null if no such annotation exists