[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Install Items
adrian@jboss.org
do-not-reply at jboss.com
Wed Apr 18 06:37:08 EDT 2007
No. The whole point of making the InstallItem seperate on the DependencyInfo
is that it will hold just that callback information.
Internally, the controller will pull out that information and index it by interface
(in a similar way to the @Inject was done).
It will pull out that information at the "required state" specified on the InstallItem
(default INSTALLED).
It is then just a case of iterating over all the callbacks
by looking up that index as new contexts reach the relevant state.
NOTE: There are two states in the above.
1) At what state we inject into the context
2) At what state the injectee must be before we add it
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038297#4038297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038297
More information about the jboss-dev-forums
mailing list