public interface BeansCollector
These beans are simple Java objects, that get defined together with a name and can be looked up either by their name
or type later to inject them as dependencies (DI), e.g. through a BeansProvider.
| Modifier and Type | Method and Description |
|---|---|
void |
defineBean(java.lang.Object bean)
Defines the given bean.
|
void |
defineBean(java.lang.String name,
java.lang.Object bean)
Defines the given bean with the specified name.
|
void |
registerBeanPostProcessor(BeanPostProcessor beanPostProcessor)
Registers the given
BeanPostProcessor. |
void defineBean(java.lang.Object bean)
The name for the bean will be generated by the implementation.
bean - the bean to definevoid defineBean(java.lang.String name,
java.lang.Object bean)
name - the name for the beanbean - the bean to definevoid registerBeanPostProcessor(BeanPostProcessor beanPostProcessor)
BeanPostProcessor.
The BeanPostProcessor will get all beans already defined to post-process immediately and all beans
defined subsequently.
beanPostProcessor - the new BeanPostProcessor