android-beans / rocks.frieler.android.beans

Package rocks.frieler.android.beans

Types

BeanConfiguration

abstract class BeanConfiguration

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

BeanConfigurationsBeansCollector

class BeanConfigurationsBeansCollector : BeansProvider

The BeanConfigurationsBeansCollector collects the beans defined by BeanConfigurations in a BeanRegistry.

BeanDefinition

open class BeanDefinition<T : Any>

A BeanDefinition defines a bean through its type, a function to create the bean and optionally with a name.

BeanPostProcessor

interface BeanPostProcessor

Interface to post-process beans.

BeanRegistry

class BeanRegistry : BeansProvider

BeansProvider that holds and provides beans which were explicitly registered before.

BeanRegistryApplication

class BeanRegistryApplication : Application

Application that initializes a BeanRegistry from BeanConfigurations.

BeanRegistryPostProcessor

interface BeanRegistryPostProcessor

Callback-interface that allows to post-process a BeanRegistry after all beans are collected.

Beans

object Beans

Facade-object to access the beans in the global BeansProvider.

BeansOfTypeConsumer

class BeansOfTypeConsumer<Type : Any> : BeanPostProcessor

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

BeansProvider

interface BeansProvider

Interface for classes that provide the beans of an application.

DeclarativeBeanConfiguration

abstract class DeclarativeBeanConfiguration : BeanConfiguration

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

Exceptions

BeanInstantiationException

class BeanInstantiationException : RuntimeException

RuntimeException thrown, when beans could not be instantiated.

NoSuchBeanException

class NoSuchBeanException : RuntimeException

RuntimeException thrown, when a desired bean is not available.