public class LifeCycleCallbackCollection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LIFECYCLE_CALLBACK_COLLECTION |
| Constructor and Description |
|---|
LifeCycleCallbackCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(LifeCycleCallback callback)
Add a Callback to the list of callbacks.
|
void |
callPostConstructCallback(java.lang.Object o)
Call the method, if one exists, that is annotated with PostConstruct
or with <post-construct> in web.xml
|
void |
callPreDestroyCallback(java.lang.Object o)
Call the method, if one exists, that is annotated with PreDestroy
or with <pre-destroy> in web.xml
|
java.util.List<LifeCycleCallback> |
getPostConstructCallbacks(java.lang.Object o) |
java.util.List<LifeCycleCallback> |
getPreDestroyCallbacks(java.lang.Object o) |
public static final java.lang.String LIFECYCLE_CALLBACK_COLLECTION
public void add(LifeCycleCallback callback)
callback - public java.util.List<LifeCycleCallback> getPreDestroyCallbacks(java.lang.Object o)
public java.util.List<LifeCycleCallback> getPostConstructCallbacks(java.lang.Object o)
public void callPostConstructCallback(java.lang.Object o)
throws java.lang.Exception
o - the object on which to attempt the callbackjava.lang.Exceptionpublic void callPreDestroyCallback(java.lang.Object o)
throws java.lang.Exception
o - the object on which to attempt the callbackjava.lang.ExceptionCopyright © 2013 FuseSource, Corp.. All Rights Reserved.