android-beans / rocks.frieler.android.beans / BeanPostProcessor / postProcessBean

postProcessBean

abstract fun <T : Any> postProcessBean(name: String, bean: T): T

Allows to post-process beans of a BeanRegistry.

The bean can be changed or even replaced, but must have the same type.

Parameters

name - the bean name

bean - the bean to post-process

Parameters

Return
the post-processed bean, either the original or a replacement