|
From: Peter De B. <pet...@gm...> - 2008-07-09 10:42:49
|
Lieven, I checked some changes in, the problem you mentioned is fixed. I'm going to delete the code you checked in, ok? regards, Peter On Wed, Jul 9, 2008 at 12:12 PM, Peter De Bruycker < pet...@gm...> wrote: > > > On Wed, Jul 9, 2008 at 11:20 AM, Lieven Doclo <lie...@ji...> > wrote: > >> Peter, >> >> I've solved the problem by not using the custom ApplicationContext, but >> just >> the standard Spring one. I've committed the code if you want to take a >> look. > > > thanks, I'll take a look at it > >> >> >> However, I still believe that you'll be doing a lot of XML bean definition >> (i.e. if you want two beans with different names of the same class, you >> can't >> do that with component scanning I think...) and you still need to provide >> sensible defaults (which can be hard for the beginning user to find out >> when >> using classpath scanning, i.e. in what package are the defaults...). >> >> wkg, >> >> Lieven >> >> > Hello Peter, >> > >> > I've just checked the code and when you're using autowiring and >> > component scanning, a problem occurs: The ApplicationContext >> > implementation is responsible for creating an Application, whereas I >> > would let the container do this (annotate your Application and let the >> > component scan handle the instantiation). However, since the >> > ApplicationContext constructs the Spring container, one cannot inject >> > the scanned Application into the ApplicationContext. >> > >> > Hence the services are injected correctly (with my annotated >> > Application), but the ApplicationContext holds his own created >> > Application... >> > >> > Can't see a solution atm... >> > >> > Greetz, >> > >> > Lieven >> > >> >> --------------------------------------------------------------------- >> >> - >> >> --- >> >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> >> Studies have shown that voting for your favorite open source project, >> >> along with a healthy diet, reduces your potential for chronic >> >> lameness >> >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> >> _______________________________________________ >> >> Springframework-rcp-dev mailing list >> >> Spr...@li... >> >> https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev >> > ---------------------------------------------------------------------- >> > --- >> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> > Studies have shown that voting for your favorite open source project, >> > along with a healthy diet, reduces your potential for chronic lameness >> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> >> >> >> >> ------------------------------------------------------------------------- >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> Studies have shown that voting for your favorite open source project, >> along with a healthy diet, reduces your potential for chronic lameness >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> _______________________________________________ >> Springframework-rcp-dev mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev >> > > |