fix possible class loader leak

This commit is contained in:
Sebastian Sdorra
2014-05-08 21:03:38 +02:00
parent b1a3f7d5c9
commit 0f88d1e30a
3 changed files with 127 additions and 50 deletions

View File

@@ -235,4 +235,17 @@ public final class BootstrapUtil
{
context.setAttribute(CLASSLOADER, classLoader);
}
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @param context
*/
public static void removeClassLoader(ServletContext context)
{
context.removeAttribute(CLASSLOADER);
}
}