Class AppContextLeakPreventer
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.preventers.AbstractLeakPreventer
-
- org.eclipse.jetty.util.preventers.AppContextLeakPreventer
-
- All Implemented Interfaces:
LifeCycle
public class AppContextLeakPreventer extends AbstractLeakPreventer
AppContextLeakPreventer Cause the classloader that is pinned by AppContext.getAppContext() to be a container or system classloader, not a webapp classloader. Inspired by Tomcat JreMemoryLeakPrevention.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
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
Constructors Constructor Description AppContextLeakPreventer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
prevent(java.lang.ClassLoader loader)
-
Methods inherited from class org.eclipse.jetty.util.preventers.AbstractLeakPreventer
doStart
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
Method Detail
-
prevent
public void prevent(java.lang.ClassLoader loader)
- Specified by:
prevent
in classAbstractLeakPreventer
-
-