|
From: James C. <jim...@do...> - 2004-03-03 22:16:25
|
I think we are both on the same page, but you have to go back to my initial post to see the problem. I have two singleton beans that point at each other. One is a DAO (BEAN_DAO) and the other is not (BEAN_NOT_DAO). The problem is that I need to initialize BEAN_NOT_DAO once the factory has set all of the properties on *both* beans. This is because BEAN_NOT_DAO depends on a call to BEAN_DAO that requires the setSessionFactory(HibernateSession) call to be made already. Unfortunately, there does not seem to be a hook provided by the BeanFactory to configure objects after all there dependencies are resolved. > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On Behalf > Of Kopylenko, Dmitry > Nope, this is exactly what the BeanFactoryPostProcessor is all about - no > bean instances has been created yet, but all RootBeanDefinitions has been > "prepared". > > What do you mean it's still too early? |