org.mule.interceptor
Class LoggingInterceptor

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessor
      extended by org.mule.interceptor.AbstractEnvelopeInterceptor
          extended by org.mule.interceptor.LoggingInterceptor
All Implemented Interfaces:
FlowConstructAware, MuleContextAware, Interceptor, InterceptingMessageProcessor, MessageProcessor, MessageSource

public class LoggingInterceptor
extends AbstractEnvelopeInterceptor

LoggingInterceptor is a simple interceptor that logs a message before and after the event processing.


Field Summary
 
Fields inherited from class org.mule.interceptor.AbstractEnvelopeInterceptor
flowConstruct
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
muleContext, next, notificationHandler
 
Constructor Summary
LoggingInterceptor()
           
 
Method Summary
 MuleEvent after(MuleEvent event)
          This method is invoked after the event has been processed, unless an exception was thrown
 MuleEvent before(MuleEvent event)
          This method is invoked before the event is processed
 MuleEvent last(MuleEvent event, ProcessingTime time, long startTime, boolean exceptionWasThrown)
          This method is always invoked after the event has been processed,
 
Methods inherited from class org.mule.interceptor.AbstractEnvelopeInterceptor
process, setFlowConstruct
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
fireNotification, getMuleContext, processNext, setListener, setMuleContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.source.MessageSource
setListener
 

Constructor Detail

LoggingInterceptor

public LoggingInterceptor()
Method Detail

before

public MuleEvent before(MuleEvent event)
Description copied from class: AbstractEnvelopeInterceptor
This method is invoked before the event is processed

Specified by:
before in class AbstractEnvelopeInterceptor

after

public MuleEvent after(MuleEvent event)
Description copied from class: AbstractEnvelopeInterceptor
This method is invoked after the event has been processed, unless an exception was thrown

Specified by:
after in class AbstractEnvelopeInterceptor

last

public MuleEvent last(MuleEvent event,
                      ProcessingTime time,
                      long startTime,
                      boolean exceptionWasThrown)
               throws MuleException
Description copied from class: AbstractEnvelopeInterceptor
This method is always invoked after the event has been processed,

Specified by:
last in class AbstractEnvelopeInterceptor
Throws:
MuleException


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