net.sf.mmm.util.event.api
Interface EventListener<E extends Event>

Type Parameters:
E - is the templated type of events to listen to.
All Superinterfaces:
EventListener

public interface EventListener<E extends Event>
extends EventListener

This is the interface for a generic event listener.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 void handleEvent(E event)
          This method is called if an event occurred.
 

Method Detail

handleEvent

void handleEvent(E event)
This method is called if an event occurred.
WARNING:
Depending on the implementation of EventSource it may NOT be legal to add or remove listeners during the call of this method because this may lead to a dead-lock.

Parameters:
event - is the event that notifies about something that happened.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.