[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: OnDemand as an aspect
jason.greene@jboss.com
do-not-reply at jboss.com
Wed May 6 12:46:37 EDT 2009
"alesj" wrote : "jason.greene at jboss.com" wrote : or better yet automated on first non-lifecycle MC method access.
| How would you do that?
|
| Which beans should be automated?
| How would you know what to fully install (which beans to activate)?
|
| You need extra info.
| And annotations are a perfect fit.
| Not to mention that "first access" screams for AOP interceptors. :-)
It definitely screams for proxies, not sure about all of the AOP baggage. :) What I meant was that you could express that pojo A has hard dependency on B, but A also has lazy dependency on C. Then when A is started, it gets a the normal ref to B, but a lazy proxy of C (non-start/activated). The first call on C triggers activation of C.
In addition, there could be some kind of lazy registry call to get a lazy ref to an MC service.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229113#4229113
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229113
More information about the jboss-dev-forums
mailing list