mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
destroy guice context from BootstrapContextListener
This commit is contained in:
@@ -66,7 +66,7 @@ public class BootstrapContextListener extends GuiceServletContextListener {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(BootstrapContextListener.class);
|
||||
|
||||
private final ClassLoaderLifeCycle classLoaderLifeCycle = ClassLoaderLifeCycle.create();
|
||||
private ClassLoaderLifeCycle classLoaderLifeCycle = ClassLoaderLifeCycle.create();
|
||||
|
||||
private ServletContext context;
|
||||
private InjectionLifeCycle injectionLifeCycle;
|
||||
@@ -110,6 +110,8 @@ public class BootstrapContextListener extends GuiceServletContextListener {
|
||||
injectionLifeCycle.shutdown();
|
||||
injectionLifeCycle = null;
|
||||
classLoaderLifeCycle.shutdown();
|
||||
|
||||
super.contextDestroyed(sce);
|
||||
}
|
||||
|
||||
private Injector createStageTwoInjector() {
|
||||
|
||||
Reference in New Issue
Block a user