org.ow2.util.event.api
Interface IEventListener


public interface IEventListener

Define the base interface for an event listener.

Author:
missonng

Method Summary
 boolean accept(IEvent event)
          Check whether the listener wants to handle this event.
 EventPriority getPriority()
          Get the listener priority.
 void handle(IEvent event)
          Handle the event.
 

Method Detail

handle

void handle(IEvent event)
Handle the event.

Parameters:
event - The event to handle.

accept

boolean accept(IEvent event)
Check whether the listener wants to handle this event.

Parameters:
event - The event to check.
Returns:
True if the listener wants to handle this event, false otherwise.

getPriority

EventPriority getPriority()
Get the listener priority.

Returns:
The listener priority.


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.