android-beans / rocks.frieler.android.beans / BeanConfiguration

BeanConfiguration

abstract class BeanConfiguration

Abstract super-class to define beans for the context of an application by providing BeanDefinitions.

BeanConfigurations can be defined as an object or must provide a public constructor, which takes the android.content.Context or no arguments, to be instantiated.

Author
Christopher Frieler

Constructors

<init>

BeanConfiguration()

Abstract super-class to define beans for the context of an application by providing BeanDefinitions.

Functions

addBeanDefinition

fun <T : Any> addBeanDefinition(beanDefinition: BeanDefinition<T>): Unit

Adds a BeanDefinition to this BeanConfiguration.

getBeanDefinitions

open fun getBeanDefinitions(): List<BeanDefinition<*>>

Returns BeanDefinitions for the beans defined by this BeanConfiguration.

Inheritors

DeclarativeBeanConfiguration

abstract class DeclarativeBeanConfiguration : BeanConfiguration

Abstract super-class for BeanConfigurations to define their beans in a declarative fashion.