"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...