de.janrufmonitor.framework.event
Interface IEventReceiver

All Known Implementing Classes:
AbstractReceiverConfigurableService

public interface IEventReceiver

This interface must be implemented by a event receiver object. An event receiver gets informed if a certain event is fired by the framework. It could be implemented by any service, repository manager or component.

Author:
Thilo Brandt

Method Summary
 int getPriority()
          Gets the priority for which the framework handles this event receiver. 0 is the hightest priority, 99 the lowest.
 String getReceiverID()
          Gets the ID of the receiver
 void received(IEvent event)
          Receives the event for which this event receiver is registered for.
 

Method Detail

received

void received(IEvent event)
Receives the event for which this event receiver is registered for.

Parameters:
event - the event to receive

getReceiverID

String getReceiverID()
Gets the ID of the receiver

Returns:
receivers ID

getPriority

int getPriority()
Gets the priority for which the framework handles this event receiver. 0 is the hightest priority, 99 the lowest.

Returns:
the priority


Copyright © 2010 by Thilo Brandt. All Rights Reserved.