|
From: Cameron B. <ca...@da...> - 2003-11-05 11:46:01
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
configurable lazy-init : excellent thanks.<br>
<br>
What are your plans for singleton FactoryBeans where getObject is a
prototype. Currently they are eager-inited. In this case I think
that the 'lazy-init' attribute should be ignored and should not call
getObject on the FactoryBean during the init phase<br>
<br>
Thanks.<br>
<br>
Cameron.<br>
<br>
jürgen höller [werk3AT] wrote:<br>
<blockquote type="cite"
cite="mid...@co...">
<pre wrap="">I'Ve just added support for lazy initialization of singletons, and a "lazy-init" of the XML "bean" tag (with "false" as default). On the occasion, I've also reworked AbstractBeanDefinition/RootBeanDefinition/ChildBeanDefinition for more consistency in terms of parameter handling.
Juergen
________________________________
Von: <a class="moz-txt-link-abbreviated" href="mailto:spr...@li...">spr...@li...</a> im Auftrag von Rod Johnson
Gesendet: Mi 05.11.2003 09:37
An: <a class="moz-txt-link-abbreviated" href="mailto:spr...@li...">spr...@li...</a>
Betreff: [[W3-SPAM]] - Re: [Springframework-developer] Singelton FactoryBeans are asked for an object before beanFactor.getBean(name) is called by application - Email found in subject
</pre>
<blockquote type="cite">
<pre wrap="">Good point: I've just added a check to ListableBeanFactoryImpl's
</pre>
</blockquote>
<pre wrap=""><!---->preInstantiateSingletons method to ignore FactoryBeans that return
isSingleton=false. I'm also inclined to agree that adding some "lazy-init"
argument to the "bean" tag would make sense.
Yes, a lazy option would be good. However, I think eager instantiation is
the appropriate default.
Regards,
Rod
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: <a class="moz-txt-link-freetext" href="http://sourceforge.net/donate/">http://sourceforge.net/donate/</a>
_______________________________________________
Springframework-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spr...@li...">Spr...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/springframework-developer">https://lists.sourceforge.net/lists/listinfo/springframework-developer</a>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: <a class="moz-txt-link-freetext" href="http://sourceforge.net/donate/">http://sourceforge.net/donate/</a>
_______________________________________________
Springframework-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spr...@li...">Spr...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/springframework-developer">https://lists.sourceforge.net/lists/listinfo/springframework-developer</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72" class="moz-signature">--
Any damn fool can write code that a computer can understand...
The trick is to write code that humans can understand.
[Martin Fowler <a class="moz-txt-link-freetext" href="http://www.martinfowler.com/distributedComputing/refactoring.pdf">http://www.martinfowler.com/distributedComputing/refactoring.pdf</a>]</pre>
</body>
</html>
|