Class AbstractLeakPreventer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.preventers.AbstractLeakPreventer
- All Implemented Interfaces:
LifeCycle
- Direct Known Subclasses:
AppContextLeakPreventer
,AWTLeakPreventer
,DOMLeakPreventer
,DriverManagerLeakPreventer
,GCThreadLeakPreventer
,Java2DLeakPreventer
,LDAPLeakPreventer
,LoginConfigurationLeakPreventer
,SecurityProviderLeakPreventer
AbstractLeakPreventer
Abstract base class for code that seeks to avoid pinning of webapp classloaders by using the jetty classloader to
proactively call the code that pins them (generally pinned as static data members, or as static
data members that are daemon threads (which use the context classloader)).
Instances of subclasses of this class should be set with Server.addBean(), which will
ensure that they are called when the Server instance starts up, which will have the jetty
classloader in scope.
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doStart()
abstract void
prevent
(ClassLoader loader) 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
-
Field Details
-
LOG
-
-
Constructor Details
-
AbstractLeakPreventer
public AbstractLeakPreventer()
-
-
Method Details
-
prevent
-
doStart
- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
Exception
-