pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.service.event
Interface EventManager

All Known Implementing Classes:
EventManagerImpl

public interface EventManager

An interface for classes managing the Events produced by the different bundles or their Controllers. A method to process all collected Events is provided as well.

Version:
$Revision: 1750 $
Author:
Thomas Weber

Method Summary
 void addEvent(Event event)
          Adds an Event to the (internal) list of events.
 java.util.Collection<Event> getEvents()
          returns an unmodifiable collection of the Events of the EventManager.
 Event getOutputEvent()
          Returns the StopEvent or null if no StopEvent has been added.
 Event getStopEvent()
          Returns the StopEvent or null if no StopEvent has been added.
 boolean isInternalServerErrorEvent()
          returns whether an internal server error event has been set.
 void runEvents(ResultSet rs)
          runs all Events.
 void setInternalServerErrorEvent()
          sets an InternalServerErrorEvent.
 

Method Detail

getStopEvent

Event getStopEvent()
Returns the StopEvent or null if no StopEvent has been added.

Returns:
Returns the StopEvent or null if no StopEvent has been added.

getOutputEvent

Event getOutputEvent()
Returns the StopEvent or null if no StopEvent has been added.

Returns:
Returns the StopEvent or null if no StopEvent has been added.

setInternalServerErrorEvent

void setInternalServerErrorEvent()
sets an InternalServerErrorEvent.


isInternalServerErrorEvent

boolean isInternalServerErrorEvent()
returns whether an internal server error event has been set.

Returns:
true, if and only if, setInternalServerErrorEvent() has been called on this EventManager. Otherwise false.

addEvent

void addEvent(Event event)
Adds an Event to the (internal) list of events.

Parameters:
event - the Event to add.

runEvents

void runEvents(ResultSet rs)
runs all Events.

Parameters:
rs - the ResultSet
See Also:
Event.run(org.torweg.pulse.service.request.ServiceRequest)

getEvents

java.util.Collection<Event> getEvents()
returns an unmodifiable collection of the Events of the EventManager.

Returns:
the events