Top Description Fields Constructors Methods
org.mortbay.jetty.plus.annotation

public Class LifeCycleCallbackCollection

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .Iterator, .List, .Map, org.mortbay.log.Log

LifeCycleCallbackCollection

Field Summary

Modifier and TypeField and Description
private HashMap<K, V>
private HashMap<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(LifeCycleCallback callback)

Add a Callback to the list of callbacks.

public void
callPostConstructCallback(Object
the object on which to attempt the callback
o
)

Call the method, if one exists, that is annotated with PostConstruct or with <post-construct> in web.xml

public void
callPreDestroyCallback(Object
the object on which to attempt the callback
o
)

Call the method, if one exists, that is annotated with PreDestroy or with <pre-destroy> in web.xml

public List<E>
public List<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

postConstructCallbacksMapback to summary
private HashMap<K, V> postConstructCallbacksMap
preDestroyCallbacksMapback to summary
private HashMap<K, V> preDestroyCallbacksMap

Constructor Detail

LifeCycleCallbackCollectionback to summary
public LifeCycleCallbackCollection()

Method Detail

addback to summary
public void add(LifeCycleCallback callback)

Add a Callback to the list of callbacks.

callPostConstructCallbackback to summary
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

Parameters
o:Object

the object on which to attempt the callback

callPreDestroyCallbackback to summary
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

Parameters
o:Object

the object on which to attempt the callback

getPostConstructCallbacksback to summary
public List<E> getPostConstructCallbacks(Object o)
getPreDestroyCallbacksback to summary
public List<E> getPreDestroyCallbacks(Object o)