If you need to access the whole MuleEvent
, either a MessageProcessor
or a POJO that implements Callable
.
Otherwise, if you only need to observe the payload a simple POJO component would do the trick.
Note that Mule also offers interceptors (and InterceptingMessageProcessor
s): use an interceptor if you need to run before/after actions or if you want the possibility to stop processing.