org.apache.camel.management
Class DefaultEventNotifier

java.lang.Object
  extended by org.apache.camel.management.DefaultEventNotifier
All Implemented Interfaces:
EventNotifier

public class DefaultEventNotifier
extends Object
implements EventNotifier

Default event notifier that only notifies if TRACE log level has been configured for its logger.

Version:
$Revision: 807573 $

Constructor Summary
DefaultEventNotifier()
           
 
Method Summary
 boolean isEnabled(EventObject event)
          Checks whether notification for the given event is enabled.
 void notify(EventObject event)
          Notifies the given event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEventNotifier

public DefaultEventNotifier()
Method Detail

notify

public void notify(EventObject event)
            throws Exception
Description copied from interface: EventNotifier
Notifies the given event

Specified by:
notify in interface EventNotifier
Parameters:
event - the event
Throws:
Exception - can be thrown if notification failed

isEnabled

public boolean isEnabled(EventObject event)
Description copied from interface: EventNotifier
Checks whether notification for the given event is enabled.

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

Specified by:
isEnabled in interface EventNotifier
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.