1
2
3
4
5
6
7 package org.mule.processor;
8
9 import org.mule.api.MuleEvent;
10 import org.mule.api.MuleException;
11 import org.mule.api.processor.MessageProcessor;
12 import org.mule.util.ObjectUtils;
13
14
15
16
17
18 public abstract class AbstractDynamicMessageProcessor implements MessageProcessor
19 {
20 public MuleEvent process(MuleEvent event) throws MuleException
21 {
22 return resolveMessageProcessor(event).process(event);
23 }
24
25
26
27
28
29 protected abstract MessageProcessor resolveMessageProcessor(MuleEvent event) throws MuleException;
30
31 @Override
32 public String toString()
33 {
34 return ObjectUtils.toString(this);
35 }
36 }