"adrian(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...