Re: DefaultDispatchQueue implementation problem
Thorsten Möller <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <002f01c3869c$041d8710$33d71e8d@Thoro> |
Christian Cryder <[email protected]> wrote: > It _sounded like_ you are trying to figure out whether the event was > invoked directly, or whether a child event was actually fired. Exact. It's an event which normaly should never directly called. Here is an excerpt from my events.xml on which I want to explain it: <req-events> <event name="CheckMaintenance"> <event name="CheckLocale"> <event name="MainPage"/> ... </event> </event> ... The handler for events CheckMaintenance and CheckLocale are something like a filter which normally not produce a view event (only the CheckMaintenance will fire an event in case of backend maintenance to forward to an error page). Nevertheless it is possible to call the events through the browser directly. In this (unwanted but unavoidable) situation I want to make sure that something like a default view event will be produced, otherwise an exception is thrown. To test wheter the event was directly called I thought I can use the method listRemainingEvents() but the result was always an empty list. In the meantime there is another question: How to remove remaining events from the queue that is clean the queue? I need this to remove all events from the queue when there are calls on child events of CheckMaintenance but the backend is on maintenance and I want to prevent that child events will handled too. Thorsten