qualifierByAnnotation

inline fun <T, Q : Annotation> qualifierByAnnotation(metadata: AnnotationMetadata): Qualifier<T>

Top level function acting as a Kotlin shortcut allowing to write qualifierByAnnotation<Foo, Bar>(metadata) instead of Qualifiers.byAnnotation(metadata, Bar::class.java).

Return

The Qualifier

Author

Alejandro Gomez

Since

1.0.0

Parameters

T

The component type

Q

The stereotype type

metadata

The metadata