org.eclipse.jetty.plus.annotation
类 LifeCycleCallbackCollection
java.lang.Object
org.eclipse.jetty.plus.annotation.LifeCycleCallbackCollection
public class LifeCycleCallbackCollection
- extends Object
LifeCycleCallbackCollection
| 从类 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.