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 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
protected static Logger LOG
           
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
AbstractLeakPreventer()
           
 
方法摘要
protected  void doStart()
           
abstract  void prevent(ClassLoader loader)
           
 
从类 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.