inline fun <reified T : Any> lookUpOptionalBean(name: String? = null): T?
Looks up the bean with the inferred type and given name (if not null) in the
BeansProvider of this application.
name - the name of the desired bean (optional)
Parameters
Return
the bean or null
See Also
fun <T : Any> lookUpOptionalBean(name: String? = null, type: KClass<T>): T?
Looks up the bean with the given name (if not null) and type in the BeansProvider of this
application.
name - the name of the desired bean (optional)
type - the type of the desired bean
Parameters
Return
the bean or null
See Also
BeansProvider.lookUpOptionalBean
@JvmStatic @JvmOverloads fun <T : Any> lookUpOptionalBean(name: String? = null, type: Class<T>): T?
Looks up the bean with the given name (if not null) and type in the BeansProvider of this
application.
name - the name of the desired bean (optional)
type - the type of the desired bean
Parameters
Return
the named bean or null
See Also