android-beans / rocks.frieler.android.beans / HierarchicalBeansProvider / lookUpOptionalLocalBean

lookUpOptionalLocalBean

abstract fun <T : Any> lookUpOptionalLocalBean(name: String, type: KClass<T>): T?

Looks up the bean with the given name and type locally, i.e. solely in this BeansProvider, not in the parent, following the same contract as BeansProvider.lookUpOptionalBean.

Parameters

name - the name of the desired bean

type - the type of the desired bean

Parameters

Return
the named bean or null

See Also

lookUpOptionalBean

abstract fun <T : Any> lookUpOptionalLocalBean(type: KClass<T>): T?

Looks up the bean with the given type locally, i.e. solely in this BeansProvider, not in the parent, following the same contract as BeansProvider.lookUpOptionalBean.

Parameters

type - the type of the desired bean

Parameters

Return
the named bean or null

See Also

lookUpOptionalBean