[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: expressing dependent states

jhalliday do-not-reply at jboss.com
Wed May 21 12:33:44 EDT 2008


wow, cool.

So in that case injecting it as a property of my bean will give the same value as injecting it as a parameter of a lifecycle method call. The difference I guess is limited to the potential for concurrent execution.

In the case of injection as a bean property, the lifecycles must be strictly serial ordered. Whereas, with lifecycle method parameter injection, the bean on which the injection is occurring can go through any of the lifecycle phases before the one for which it requires the injected parameter, concurrently with the lifecycle of the bean that will be injected.

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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152425#4152425

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152425



More information about the jboss-dev-forums mailing list