org.apache.camel.spi
Interface EventNotifier

All Known Implementing Classes:
DefaultEventNotifier

public interface EventNotifier

Notifier to send events.

Version:
$Revision: 807573 $
See Also:
EventFactory

Method Summary
 boolean isEnabled(EventObject event)
          Checks whether notification for the given event is enabled.
 void notify(EventObject event)
          Notifies the given event
 

Method Detail

notify

void notify(EventObject event)
            throws Exception
Notifies the given event

Parameters:
event - the event
Throws:
Exception - can be thrown if notification failed

isEnabled

boolean isEnabled(EventObject event)
Checks whether notification for the given event is enabled.

If disabled the event will not be sent and silently ignored instead.

Parameters:
event - the event
Returns:
true if the event should be sent, false to silently ignore it


Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.