bean

inline fun <T : Any> bean(name: String? = null): T

Return the bean instance that uniquely matches the given object type, and potentially the name if provided, if any.

Parameters

T

the bean type

name

the name of the bean