mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
34 lines
746 B
Java
34 lines
746 B
Java
package sonia.scm.lifecycle.classloading;
|
|
|
|
/**
|
|
* This ClassLoader is mainly a wrapper around the web application class loader and its goal is to make it easier to
|
|
* find it in a heap dump.
|
|
*/
|
|
class BootstrapClassLoader extends ClassLoader {
|
|
|
|
/**
|
|
* Marker to find a BootstrapClassLoader, which is already shutdown.
|
|
*/
|
|
private boolean shutdown = false;
|
|
|
|
BootstrapClassLoader(ClassLoader webappClassLoader) {
|
|
super(webappClassLoader);
|
|
}
|
|
|
|
/**
|
|
* Returns {@code true} if the classloader was shutdown.
|
|
*
|
|
* @return {@code true} if the classloader was shutdown
|
|
*/
|
|
boolean isShutdown() {
|
|
return shutdown;
|
|
}
|
|
|
|
/**
|
|
* Mark the class loader as shutdown.
|
|
*/
|
|
void markAsShutdown() {
|
|
shutdown = true;
|
|
}
|
|
}
|