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