spring-framework / org.springframework.beans.factory / getBeanNamesForAnnotation

getBeanNamesForAnnotation

fun <reified T : Annotation> ListableBeanFactory.getBeanNamesForAnnotation(): Array<out String>

Extension for ListableBeanFactory.getBeanNamesForAnnotation providing a getBeansOfType<Foo>() variant.

Author
Sebastien Deleuze

Since
5.0