Package-level declarations

Functions

Link copied to clipboard

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

Link copied to clipboard
inline fun <T : Any> BeanFactory.getBean(): T

Extension for BeanFactory.getBean providing a getBean<Foo>() variant. This extension is not subject to type erasure and retains actual generic type arguments.

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

Extension for BeanFactory.getBean providing a getBean<Foo>(arg1, arg2) variant. This extension is not subject to type erasure and retains actual generic type arguments.

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

Extension for BeanFactory.getBean providing a getBean<Foo>("foo") variant. Like the original Java method, this extension is subject to type erasure.

Link copied to clipboard

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

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

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

Link copied to clipboard

Extension for BeanFactory.getBeanProvider providing a getBeanProvider<Foo>() variant. This extension is not subject to type erasure and retains actual generic type arguments.

Link copied to clipboard
inline fun <T : Any> ListableBeanFactory.getBeansOfType(includeNonSingletons: Boolean = true, allowEagerInit: Boolean = true): Map<String, T>

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

Link copied to clipboard

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