|
From: Kopylenko, D. <dko...@ac...> - 2004-03-03 20:57:34
|
I would think by doing something like this:
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
beanFactory.getBean("beanName");
}
it would instantiate the bean, if not done so already and call its lifecycle
callbacks
Juergen, can you confirm, please.
-----Original Message-----
From: James Cook [mailto:jim...@do...]
Sent: Wednesday, March 03, 2004 1:56 PM
To: spr...@li...
Subject: RE: RE: [Springframework-developer] Lifecycle methods
Thanks, but in relation to my original request, how can I invoke a method on
my singleton bean only after all other beans have been created by the
factory? Does this capability exist?
How are others handling a cyclic redundancy between two beans?
> -----Original Message-----
> [mailto:spr...@li...] On
> Behalf Of Kopylenko, Dmitry Yes, this is the correct behavior of the
> BeanFactoryPostProcessor.
> postProcessBeanFactory() gets called when all bean definitions will
> have been loaded, but no beans will have been instantiated yet.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|