|
From: <tri...@tr...> - 2004-03-03 22:52:27
|
James, Have you tried implementing an ApplicationListener interface in your BEAN_NOT_DAO. I've never used it but it sounds like it could solve your problem. Look at section 3.10.2 in the reference manual. Thomas Quoting James Cook <jim...@do...>: > 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? > > > > > > ------------------------------------------------------- > 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 > |