Class RequestCycleListenerCollection

java.lang.Object
org.apache.wicket.util.listener.ListenerCollection<IRequestCycleListener>
org.apache.wicket.request.cycle.RequestCycleListenerCollection
All Implemented Interfaces:
Serializable, Iterable<IRequestCycleListener>, IRequestCycleListener

Composite IRequestCycleListener that notifies all registered listeners with each IRequestCycleListener event.

Order of notification onBeginRequest(RequestCycle), onRequestHandlerScheduled(RequestCycle, IRequestHandler) and onRequestHandlerResolved(RequestCycle, IRequestHandler) are notified in first in, first out order.

onEndRequest(RequestCycle) and onDetach(RequestCycle) are notified in last in first out order (i.e. reversed order). So for these events the collection functions as a stack.

Exception handling The RequestCycleListenerCollection will use the first exception handler that is returned from all listeners in onException(RequestCycle, Exception)

See Also: