org.eclipse.jetty.plus.annotation
Class LifeCycleCallbackCollection

java.lang.Object
  extended by org.eclipse.jetty.plus.annotation.LifeCycleCallbackCollection

public class LifeCycleCallbackCollection
extends java.lang.Object

LifeCycleCallbackCollection


Field Summary
static java.lang.String LIFECYCLE_CALLBACK_COLLECTION
           
 
Constructor Summary
LifeCycleCallbackCollection()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIFECYCLE_CALLBACK_COLLECTION

public static final java.lang.String LIFECYCLE_CALLBACK_COLLECTION
See Also:
Constant Field Values
Constructor Detail

LifeCycleCallbackCollection

public LifeCycleCallbackCollection()
Method Detail

add

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

Parameters:
callback -

getPreDestroyCallbacks

public java.util.List<LifeCycleCallback> getPreDestroyCallbacks(java.lang.Object o)

getPostConstructCallbacks

public java.util.List<LifeCycleCallback> getPostConstructCallbacks(java.lang.Object o)

callPostConstructCallback

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

Parameters:
o - the object on which to attempt the callback
Throws:
java.lang.Exception

callPreDestroyCallback

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

Parameters:
o - the object on which to attempt the callback
Throws:
java.lang.Exception


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.