jdave
Interface ILifecycleListener

All Known Implementing Classes:
DefaultLifecycleListener

public interface ILifecycleListener

A listener which will get notifications when new contexts are created.

Author:
Joni Freeman
See Also:
Specification.addListener(ILifecycleListener)

Method Summary
 void afterContextCreation(java.lang.Object contextInstance, java.lang.Object createdContext)
          Called just after context's create method has been called.
 void afterContextDestroy(java.lang.Object contextInstance)
          Called just after context's destroy method has been called.
 void afterContextInstantiation(java.lang.Object contextInstance)
          Called just after a context has been instantiated.
 

Method Detail

afterContextInstantiation

void afterContextInstantiation(java.lang.Object contextInstance)
Called just after a context has been instantiated.

Parameters:
contextInstance - the instantiated context

afterContextCreation

void afterContextCreation(java.lang.Object contextInstance,
                          java.lang.Object createdContext)
Called just after context's create method has been called.

Parameters:
contextInstance - the holding context
createdContext - the object which was returned from create method

afterContextDestroy

void afterContextDestroy(java.lang.Object contextInstance)
Called just after context's destroy method has been called.

Parameters:
contextInstance - the context instance


Copyright © 2008. All Rights Reserved.