org.eclipse.jetty.util.preventers
类 AbstractLeakPreventer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.preventers.AbstractLeakPreventer
- 所有已实现的接口:
- LifeCycle
- 直接已知子类:
- AppContextLeakPreventer, AWTLeakPreventer, DOMLeakPreventer, DriverManagerLeakPreventer, GCThreadLeakPreventer, Java2DLeakPreventer, LDAPLeakPreventer, LoginConfigurationLeakPreventer, SecurityProviderLeakPreventer
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.
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final Logger LOG
AbstractLeakPreventer
public AbstractLeakPreventer()
prevent
public abstract void prevent(ClassLoader loader)
doStart
protected void doStart()
throws Exception
- 覆盖:
- 类
AbstractLifeCycle 中的 doStart
- 抛出:
Exception
Copyright © 2013. All Rights Reserved.