|
From: Dmitriy K. <dko...@ru...> - 2004-05-28 12:45:04
|
I've created a component in JIRA for documentation called SpringDOCO Regards, Dmitriy. Alef Arendsen wrote: > Errr, I replied to the wrong email I guess ;-) > > It was supposed to be a reply to the scheduling question from Mike CB > > Alef > > > -----Original Message----- > From: spr...@li... [mailto:spr...@li...] On Behalf Of Alef Arendsen > Sent: Friday, May 28, 2004 10:16 AM > To: spr...@li... > Subject: RE: [Springframework-developer] Strange 'double' singleton bug > > I've inserted an issue in JIRA. I'll see what I can do today. > > By the way, could somebody create a component for documentation in JIRA? > > Alef > > > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On Behalf > Of Mike Cannon-Brookes > Sent: Friday, May 28, 2004 8:46 AM > To: Spring Developer > Subject: [Springframework-developer] Strange 'double' singleton bug > > I'm not sure if this is a bug or not, it's certainly strange behaviour. > > We had a singleton bean that was operating normally, but when we make > it implement ApplicationListener - we get _two_ instances of it > created. (Tested by simply putting a debug point in the constructor - > two separate beans are created) > > Here's the config snippet: > > <bean id="macroManager" > class="com.atlassian.renderer.macro.DefaultMacroManager"> > <constructor-arg> > <ref local="macroStateStore"/> > </constructor-arg> > <constructor-arg> > <list> > <ref local="beanMacroLoader"/> > <ref local="classpathMacroLoader"/> > </list> > </constructor-arg> > </bean> > > Is this a known bug, a feature or am I not meant to use > ApplicationListener this way? (if it's a bug it's quite serious I'd > say) > > I want to do it this way because another part of Confluence fires an > event to say that all setup has finished - and I want this bean to > listen for that event and further initialize itself. > > I just guessed that in Spring I would just need to implement the > ApplicationListener interface and listen for events - if I need to do > anything else, let me know :) > > Cheers, > Mike > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id66&op=ick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id66&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |