spring-framework / org.springframework.beans.factory

Package org.springframework.beans.factory

Functions

findAnnotationOnBean

fun <T : Annotation> ListableBeanFactory.findAnnotationOnBean(beanName: String): Annotation?

Extension for ListableBeanFactory.findAnnotationOnBean providing a findAnnotationOnBean<Foo>("foo") variant.

getBean

fun <T : Any> BeanFactory.getBean(): T

Extension for BeanFactory.getBean providing a getBean<Foo>() variant.

fun <T : Any> BeanFactory.getBean(name: String): T

Extension for BeanFactory.getBean providing a getBean<Foo>("foo") variant.

fun <T : Any> BeanFactory.getBean(vararg args: Any): T

Extension for BeanFactory.getBean providing a getBean<Foo>(arg1, arg2) variant.

getBeanNamesForAnnotation

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

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

getBeanNamesForType

fun <T : Any> ListableBeanFactory.getBeanNamesForType(includeNonSingletons: Boolean = true, allowEagerInit: Boolean = true): Array<out String>

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

getBeansOfType

fun <T : Any> ListableBeanFactory.getBeansOfType(includeNonSingletons: Boolean = true, allowEagerInit: Boolean = true): Map<String, T>

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

getBeansWithAnnotation

fun <T : Annotation> ListableBeanFactory.getBeansWithAnnotation(): Map<String, Any>

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