[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: DependencyInfo remove items

adrian@jboss.org do-not-reply at jboss.com
Wed Feb 14 07:55:00 EST 2007


For the removeIDependOn() it is because the DescribeAction is buggy :-)

It should be removing the dependency items in uninstall()
that it added in install() from the AOP dependencies.

Of course, nobody noticed because all that would happen is that
the dependencies would be resolved multiple times if the context is re-installed.

Besides that case, there are no other occurances of dynamic dependencies
that I can think of?
i.e. Where a dependency is added that should be removed before the
context is uninstalled from the controller.

The other possible example would be that in principle a user can
create their own ControllerContext and reuse the AbstractDependencyInfo.
That may want to abitrarily add/remove dependencies?

e.g. The JMX controller does the first part (creates a ServiceControllerContext)
but it has no requirement to remove dependencies. :-)

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

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



More information about the jboss-dev-forums mailing list