org.mule.processor
Class AbstractMessageObserver

java.lang.Object
  extended by org.mule.processor.AbstractMessageObserver
All Implemented Interfaces:
MessageProcessor
Direct Known Subclasses:
FlowConstructStatisticsMessageObserver, InboundLoggingMessageProcessor, InboundNotificationMessageProcessor, OutboundLoggingMessageProcessor, OutboundNotificationMessageProcessor, ServiceLoggingMessageObserver, ServiceOutboundStatisticsObserver, ServiceSetEventRequestContextMessageObserver, ServiceStatisticsMessageObserver, WireTap

public abstract class AbstractMessageObserver
extends java.lang.Object
implements MessageProcessor

Can be used for simple MessageProcessors that require the MuleEvent to log or send notifications etc. but don't modify it in any way or pass it on to another message processor.


Field Summary
protected  Log logger
           
 
Constructor Summary
AbstractMessageObserver()
           
 
Method Summary
abstract  void observe(MuleEvent event)
           
 MuleEvent process(MuleEvent event)
          Invokes the MessageProcessor.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected Log logger
Constructor Detail

AbstractMessageObserver

public AbstractMessageObserver()
Method Detail

process

public final MuleEvent process(MuleEvent event)
                        throws MuleException
Description copied from interface: MessageProcessor
Invokes the MessageProcessor.

Specified by:
process in interface MessageProcessor
Parameters:
event - MuleEvent to be processed
Returns:
optional response MuleEvent
Throws:
MuleException

observe

public abstract void observe(MuleEvent event)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.