[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: In/Un callbacks should be happening at Install
adrian@jboss.org
do-not-reply at jboss.com
Fri Feb 15 10:43:05 EST 2008
Also, related to this, it might be useful if we generalise the install
to be doable at anytime (well at least from instantiated),
rather than just when the object is "installed".
e.g.
| <bean ...>
| <install bean='Registry" method="add" state="Configured">
| <parameter><this/></parameter>
| </install>
| </bean>
|
i.e. like the incallback, you could add an object to a registry before it has
completed its lifecycle.
This is the case for example in some of the classloader stuff I'm doing
where the "Module" is added to the "ClassLoading" registry for dependency anaylsis
at "Configured" but it doesn't go through to the 'Install" (creation of the classloader)
until those dependencies are satisifed.
Currently I have to use an InstallCallback to achieve this
(which isn't a big issue except that it would only allow one ClassLoading instance).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129688#4129688
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129688
More information about the jboss-dev-forums
mailing list