android-beans / rocks.frieler.android.beans / BeansProvider / lookUpBeans

lookUpBeans

abstract fun <T : Any> lookUpBeans(type: KClass<T>): List<T>

Looks up all beans of the given type in the BeanRegistry of this application.

Parameters

type - the type of the desired beans

Parameters

Return
the beans of the given type or an empty list

open fun <T : Any> lookUpBeans(type: Class<T>): List<T>

Looks up all beans of the given Java type in the BeanRegistry of this application.

Parameters

type - the type of the desired beans

Parameters

Return
the beans of the given type or an empty list