|
From: Cameron B. <ca...@da...> - 2004-03-04 08:26:38
|
Excellent.. Thanks. Cameron=20 > -----Original Message----- > From: spr...@li...=20 > [mailto:spr...@li...] > On Behalf Of j=FCrgen h=F6ller [werk3AT] > Sent: Thursday, 4 March 2004 6:04 PM > To: spr...@li... > Subject: Re: [Springframework-developer] How to provide a=20 > singleton instance as a bean in spring >=20 > There indeed is: > =20 > <bean name=3D"MyRegistry"=20 > class=3D"org.springframework.beans.factory.config.MethodInvoking > FactoryBean"> > <propety=20 > name=3D"staticMethod"><value>com.datacodex.MyRegistry.getInstanc > e</value></property> > </bean> > =20 > Method arguments would have to be specified as "arguments"=20 > property (an Object array). > =20 > Juergen > =20 >=20 > ________________________________ >=20 > Von: spr...@li... im=20 > Auftrag von Cameron Braid > Gesendet: Do 04.03.2004 08:54 > An: spr...@li... > Betreff: [Springframework-developer] How to provide a=20 > singleton instance as a bean in spring >=20 >=20 > Is there an existing bean factory implementation that allows=20 > me to expose any bean that uses the singleton pattern to my=20 > application context ? > =20 > For example I would like to do something like this : > =20 > <bean name=3D"MyRegistry" class=3D"singletonFactoryBean"> > <propety=20 > name=3D"signiture"><value>com.datacodex.MyRegistry.getInstance() > </value></property> > </bean> >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials Free=20 > Linux tutorial presented by Daniel Robbins, President and CEO=20 > of GenToo technologies. Learn everything from fundamentals to=20 > system = administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 >=20 |