[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: expressing dependent states
adrian@jboss.org
do-not-reply at jboss.com
Wed May 21 12:59:03 EDT 2008
"jhalliday" wrote :
| Is that right? Does MC actually use or plan to use concurrent startup to speed things up? If so, there is potential advantage in sticking with parameter injection rather than injecting it as a property on my bean.
Yes, but I don't really see how delaying the injection increases the concurrency?
In most circumstances if you have dependencies they are going to wait until
you are fully installed so it doesn't really matter if you inject some other service
into a property or a lifecycle method.
On an aesthetic point, some advocates of IOC (e.g. nano/pico container) suggest
you should inject into the constructor parameters since then you can
be immutable and it is less error prone (you are forced to inject all the parameters
while people are not forced to set all the properties or configure lifecycle methods).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152439#4152439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152439
More information about the jboss-dev-forums
mailing list