|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to be implemented by beans that wish to be aware of their owning BeanFactory. Beans can e.g. look up collaborating beans via the factory.
Note that most beans will choose to receive references to collaborating beans via respective bean properties.
For a list of all bean lifecycle methods, see the BeanFactory javadocs.
BeanNameAware
,
InitializingBean
,
BeanFactory
,
ApplicationContextAware
Method Summary | |
void |
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance. |
Method Detail |
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method.
beanFactory
- owning BeanFactory (may not be null).
The bean can immediately call methods on the factory.
BeansException
- in case of initialization errorsBeanInitializationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |