public class InterceptorStack extends AbstractInterceptingMessageProcessor implements Interceptor, Initialisable, Disposable
logger, muleContext, next, notificationHandler
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
InterceptorStack() |
InterceptorStack(List<Interceptor> interceptors) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
boolean |
equals(Object obj) |
List<Interceptor> |
getInterceptors() |
int |
hashCode() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invoked when the component should be called.
|
void |
setInterceptors(List<Interceptor> interceptors) |
addMessageProcessorPathElements, getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, processNext, setAnnotations, setListener, setMuleContext, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setListener
public InterceptorStack()
public InterceptorStack(List<Interceptor> interceptors)
public MuleEvent process(MuleEvent event) throws MuleException
Interceptor
process
in interface Interceptor
process
in interface MessageProcessor
event
- the event containing info about the current message and serviceMuleException
public List<Interceptor> getInterceptors()
public void setInterceptors(List<Interceptor> interceptors)
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.