android-beans / rocks.frieler.android.beans / BeansOfTypeConsumer / <init>

<init>

BeansOfTypeConsumer(type: Class<Type>, consumer: Consumer<Type>) BeansOfTypeConsumer(type: KClass<Type>, consumer: (Type) -> Unit)

BeanPostProcessor to consume all beans of a certain type (including all its subtypes).

A common use-case is to collect all beans implementing a certain interface and inject them lazily into another bean.

Parameters

Author
Christopher Frieler