public ClassLoader getClassLoader() { return parent.getClassLoader(); }
public ClassLoader getClassLoader() { return parent.getClassLoader(); }
public ClassLoader getClassLoader() { ClassLoader cl = deploymentContext.getClassLoader(); if (cl == null) throw new IllegalStateException("ClassLoader has not been set"); deploymentContext.deployed(); return cl; }
public ClassLoader getClassLoader() { ClassLoader cl = deploymentContext.getClassLoader(); if (cl == null) throw new IllegalStateException("ClassLoader has not been set"); deploymentContext.deployed(); return cl; }
@Override protected void removeTopLevelClassLoader(DeploymentContext context) throws Exception { ClassLoader classLoader = context.getClassLoader(); try { unregisterClassLoaderFromMBeanServer(classLoader); } catch (Throwable t) { log.warn("Unable to unregister classloader from mbeanserver: " + classLoader, t); } try { // Remove the classloader system.unregisterClassLoader(classLoader); } finally { // Reset the module to avoid possible memory leaks Module module = context.getTransientAttachments().getAttachment(Module.class); if (module == null) throw new IllegalStateException("Deployment Context has no module: " + context); cleanup(context, module); module.reset(); } }
@Override public void removeClassLoader(DeploymentContext context) throws Exception { ClassLoader classLoader = context.getClassLoader(); try { unregisterClassLoaderFromMBeanServer(classLoader); } catch (Throwable t) { log.warn("Unable to unregister classloader from mbeanserver: " + classLoader, t); } try { // Remove the classloader system.unregisterClassLoader(classLoader); } finally { // Reset the module to avoid possible memory leaks Module module = context.getTransientAttachments().getAttachment(Module.class); if (module == null) throw new IllegalStateException("Deployment Context has no module: " + context); cleanup(context, module); module.reset(); } }