Class DriverManagerLeakPreventer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.preventers.AbstractLeakPreventer
org.eclipse.jetty.util.preventers.DriverManagerLeakPreventer
- All Implemented Interfaces:
LifeCycle
DriverManagerLeakPreventer
Cause DriverManager.getCallerClassLoader() to be called, which will pin the classloader.
Inspired by Tomcat JreMemoryLeakPrevention.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
Fields inherited from class org.eclipse.jetty.util.preventers.AbstractLeakPreventer
LOG
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.jetty.util.preventers.AbstractLeakPreventer
doStart
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Constructor Details
-
DriverManagerLeakPreventer
public DriverManagerLeakPreventer()
-
-
Method Details
-
prevent
- Specified by:
prevent
in classAbstractLeakPreventer
-