org.mule.processor
Class AbstractInterceptingMessageProcessorBase

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessorBase
All Implemented Interfaces:
AnnotatedObject, MuleContextAware, MessageProcessor, MessageProcessorContainer
Direct Known Subclasses:
AbstractAsyncRequestReplyRequester, AbstractInterceptingMessageProcessor

public abstract class AbstractInterceptingMessageProcessorBase
extends Object
implements MessageProcessor, MuleContextAware, AnnotatedObject, MessageProcessorContainer

Abstract implementation that provides the infrastructure for intercepting message processors. It doesn't implement InterceptingMessageProcessor itself, to let individual subclasses make that decision \. This simply provides an implementation of setNext and holds the next message processor as an attribute.


Field Summary
protected  Log logger
           
protected  MuleContext muleContext
           
protected  MessageProcessor next
           
protected  ServerNotificationHandler notificationHandler
           
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
AbstractInterceptingMessageProcessorBase()
           
 
Method Summary
 void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
          Add the child nodes to the path element tree.
 Object getAnnotation(QName name)
          Gets the value of specified annotation.
 Map<QName,Object> getAnnotations()
          Gets all annotations.
 MessageProcessor getListener()
           
 MuleContext getMuleContext()
           
protected  boolean isEventValid(MuleEvent event)
           
protected  MuleEvent processNext(MuleEvent event)
           
 void setAnnotations(Map<QName,Object> newAnnotations)
          Sets annotations to the object.
 void setListener(MessageProcessor next)
           
 void setMuleContext(MuleContext context)
           
 String 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.processor.MessageProcessor
process
 

Field Detail

logger

protected Log logger

notificationHandler

protected ServerNotificationHandler notificationHandler

muleContext

protected MuleContext muleContext

next

protected MessageProcessor next
Constructor Detail

AbstractInterceptingMessageProcessorBase

public AbstractInterceptingMessageProcessorBase()
Method Detail

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

getListener

public final MessageProcessor getListener()

setListener

public void setListener(MessageProcessor next)

processNext

protected MuleEvent processNext(MuleEvent event)
                         throws MuleException
Throws:
MuleException

getMuleContext

public MuleContext getMuleContext()

toString

public String toString()
Overrides:
toString in class Object

getAnnotation

public final Object getAnnotation(QName name)
Description copied from interface: AnnotatedObject
Gets the value of specified annotation.

Specified by:
getAnnotation in interface AnnotatedObject
Returns:
the value of specified annotation

getAnnotations

public final Map<QName,Object> getAnnotations()
Description copied from interface: AnnotatedObject
Gets all annotations.

Specified by:
getAnnotations in interface AnnotatedObject
Returns:
all annotation

setAnnotations

public final void setAnnotations(Map<QName,Object> newAnnotations)
Description copied from interface: AnnotatedObject
Sets annotations to the object.

Specified by:
setAnnotations in interface AnnotatedObject

isEventValid

protected boolean isEventValid(MuleEvent event)

addMessageProcessorPathElements

public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
Description copied from interface: MessageProcessorContainer
Add the child nodes to the path element tree.

Specified by:
addMessageProcessorPathElements in interface MessageProcessorContainer


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