net.contextfw.web.application
Interface LifecycleListener

All Known Implementing Classes:
DefaultLifecycleListener, LifecycleListeners

public interface LifecycleListener


Method Summary
 void afterInitialize()
           
 void afterRender()
           
 void afterUpdate()
           
 void beforeInitialize()
           
 void beforeRender()
           
 boolean beforeUpdate()
           This method is useful in two ways.
 void onException(Exception e)
           
 

Method Detail

beforeInitialize

void beforeInitialize()

afterInitialize

void afterInitialize()

beforeUpdate

boolean beforeUpdate()

This method is useful in two ways. First it can be used to initialize possible database connections etc.

By default this method should return true, but it can be used to cancel the client update request by returning false. This can be used for instance to restrict client from making requests after credentials have been expired.

In case of false (and also when true) this method can be used to call methods on components and create updates.

Note that even if false is returned the flow will continue. Only the client update request is bypassed.

Returns:
true if client update can continue, false otherwise

afterUpdate

void afterUpdate()

onException

void onException(Exception e)

beforeRender

void beforeRender()

afterRender

void afterRender()


Copyright © 2011. All Rights Reserved.