Top Description Fields Constructors Methods
org.eclipse.jetty.util.preventers

public abstract Class AbstractLeakPreventer

extends AbstractLifeCycle
Class Inheritance
Known Direct Subclasses
org.eclipse.jetty.util.preventers.AppContextLeakPreventer, org.eclipse.jetty.util.preventers.AWTLeakPreventer, org.eclipse.jetty.util.preventers.DriverManagerLeakPreventer
Imports
org.eclipse.jetty.util.component.AbstractLifeCycle, org.slf4j.Logger, .LoggerFactory

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.

Field Summary

Modifier and TypeField and Description
protected static final Logger
Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
FAILEDSTARTEDSTARTINGSTOPPEDSTOPPING

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
doStart()

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Method to override to start the lifecycle

public abstract void
Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
addEventListenerdoStopgetEventListenersgetStategetStateisFailedisRunningisStartedisStartingisStoppedisStoppingremoveEventListenersetEventListenersstartstoptoString

Field Detail

LOGback to summary
protected static final Logger LOG

Hides org.eclipse.jetty.util.component.AbstractLifeCycle.LOG.

Constructor Detail

AbstractLeakPreventerback to summary
public AbstractLeakPreventer()

Method Detail

doStartback to summary
protected void doStart() throws Exception

Overrides org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Doc from org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Method to override to start the lifecycle

Annotations
@Override
Exceptions
Exception:
If there was a problem starting. Will cause a transition to FAILED state
preventback to summary
public abstract void prevent(ClassLoader loader)