public class InterceptorStack extends AbstractInterceptingMessageProcessor implements Interceptor, Initialisable, Disposable
logger, muleContext, next, notificationHandlerPHASE_NAMEPHASE_NAMEPROPERTY_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, getListener, getMuleContext, isEventValid, processNext, setListener, setMuleContext, toStringgetAnnotation, getAnnotations, setAnnotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetListenerpublic InterceptorStack()
public InterceptorStack(List<Interceptor> interceptors)
public MuleEvent process(MuleEvent event) throws MuleException
Interceptorprocess in interface Interceptorprocess in interface MessageProcessorevent - the event containing info about the current message and serviceMuleExceptionpublic List<Interceptor> getInterceptors()
public void setInterceptors(List<Interceptor> interceptors)
public void initialise()
throws InitialisationException
InitialisableInitialisationException 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 InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void dispose()
Disposabledispose in interface DisposableCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.