getAnnotation

open fun <A : Annotation?> getAnnotation(type: Class<A>): A

Return a single associated annotations that could affect binding.

Return

the associated annotation or null

Parameters

<A>

the annotation type

type

annotation type