org.objectweb.jotm.core.events
Interface EventListener
- All Known Implementing Classes:
- ListenerImpl, ResourceParticipant, SynchronizationParticipant
- public interface EventListener
Event listener. An event listener is registered to a EventSource
to receive events of a specified type. Since the delivery of events is
provided synchronously, it is possible to respond to the event source by
modifying the event object. The way of response is dependent on
particular implementations of the Event interface.
handleEvent
public void handleEvent(Event event)
- Handle event. This method is invoked when an event of the specified type
occurs. Clearly, the listener had to be registered as a listener
of the event type before the event occurs.
- Parameters:
event - event data