public static final class Beans.Initializer
extends java.lang.Object
Beans.
Initializes Beans with a BeanRegistry and allows to configure it.
| Constructor and Description |
|---|
Initializer() |
| Modifier and Type | Method and Description |
|---|---|
Beans.Initializer |
addScope(ScopedFactoryBeanHandler scopedFactoryBeanHandler)
Adds a bean-scope expressed by the given
ScopedFactoryBeanHandler. |
Beans.Initializer |
collectBeans(java.util.List<? extends BeanConfiguration> beanConfigurations)
Collects beans from the given
BeanConfigurations. |
void |
initialize()
Initializes
Beans with the applied configuration. |
public Beans.Initializer addScope(ScopedFactoryBeanHandler scopedFactoryBeanHandler)
ScopedFactoryBeanHandler.scopedFactoryBeanHandler - the ScopedFactoryBeanHandler to addBeans.Initializer itselfBeanRegistry.addBeanScope(ScopedFactoryBeanHandler)public Beans.Initializer collectBeans(java.util.List<? extends BeanConfiguration> beanConfigurations)
BeanConfigurations.beanConfigurations - the BeanConfigurations that define the beansBeans.Initializer itselfBeanConfigurationsBeansCollector.collectBeans(List)public void initialize()
Beans with the applied configuration.