org.eclipse.jetty.plus.annotation
类 LifeCycleCallbackCollection

java.lang.Object
  继承者 org.eclipse.jetty.plus.annotation.LifeCycleCallbackCollection

public class LifeCycleCallbackCollection
extends Object

LifeCycleCallbackCollection


字段摘要
static String LIFECYCLE_CALLBACK_COLLECTION
           
 
构造方法摘要
LifeCycleCallbackCollection()
           
 
方法摘要
 void add(LifeCycleCallback callback)
          Add a Callback to the list of callbacks.
 void callPostConstructCallback(Object o)
          Call the method, if one exists, that is annotated with PostConstruct or with <post-construct> in web.xml
 void callPreDestroyCallback(Object o)
          Call the method, if one exists, that is annotated with PreDestroy or with <pre-destroy> in web.xml
 List<LifeCycleCallback> getPostConstructCallbacks(Object o)
           
 List<LifeCycleCallback> getPreDestroyCallbacks(Object o)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

LIFECYCLE_CALLBACK_COLLECTION

public static final String LIFECYCLE_CALLBACK_COLLECTION
另请参见:
常量字段值
构造方法详细信息

LifeCycleCallbackCollection

public LifeCycleCallbackCollection()
方法详细信息

add

public void add(LifeCycleCallback callback)
Add a Callback to the list of callbacks.

参数:
callback -

getPreDestroyCallbacks

public List<LifeCycleCallback> getPreDestroyCallbacks(Object o)

getPostConstructCallbacks

public List<LifeCycleCallback> getPostConstructCallbacks(Object o)

callPostConstructCallback

public void callPostConstructCallback(Object o)
                               throws Exception
Call the method, if one exists, that is annotated with PostConstruct or with <post-construct> in web.xml

参数:
o - the object on which to attempt the callback
抛出:
Exception

callPreDestroyCallback

public void callPreDestroyCallback(Object o)
                            throws Exception
Call the method, if one exists, that is annotated with PreDestroy or with <pre-destroy> in web.xml

参数:
o - the object on which to attempt the callback
抛出:
Exception


Copyright © 2013. All Rights Reserved.