[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Bean instantiate order with contextual injection
alesj
do-not-reply at jboss.com
Mon Aug 28 10:07:11 EDT 2006
"adrian at jboss.org" wrote : One thing you are missing is an "uninstall" part of the describe process
| that removes the class references from the dependencies.
|
| Otherwise you're going to cause a memory leak:
|
| controllerContext -> dependencyInfo -> dependency -> class -> undeployed classloader -> memory leak
Where to do this 'uninstall'?
Ok, when class dependency gets resolved, iDependOn (demandClass) is set with context name.
Probably simple adding of
| public void unresolved(Controller controller)
| {
| setIDependOn(null);
| super.unresolved(controller);
| }
|
won't do the trick entirely.
Should I iterate through DependencyInfo.getIDependOn(ClassContextDependencyItem.class) when context.beanInfo is set to null in DescribeAction.uninstallAction?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967823#3967823
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967823
More information about the jboss-dev-forums
mailing list