|
From: Dmitriy K. <dko...@ru...> - 2004-03-03 22:50:35
|
Yes, I know what you mean, but I'm not sure how to deal with this situation. Will <bean id="BEAN_NOT_DAO" class="whatever" depends-on="BEAN_DAO"> work in this kind of a situation? Anyone? ----- Original Message ----- From: James Cook <jim...@do...> Date: Wednesday, March 3, 2004 5:02 pm Subject: RE: RE: [Springframework-developer] Lifecycle methods > 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 > BeanFactoryto configure objects after all there dependencies are > resolved. > > -----Original Message----- > > From: spr...@li... > > [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? > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |