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, DriverManagerLeakPreventer

public abstract class AbstractLeakPreventer extends AbstractLifeCycle
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.
  • Constructor Details

    • AbstractLeakPreventer

      public AbstractLeakPreventer()
  • Method Details