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.api.processor.MessageProcessorChain; |
13 | |
import org.mule.api.processor.policy.Policies; |
14 | |
import org.mule.util.ObjectUtils; |
15 | |
|
16 | |
import java.util.Collections; |
17 | |
import java.util.List; |
18 | |
|
19 | |
|
20 | 0 | public class NullMessageProcessor implements MessageProcessorChain |
21 | |
{ |
22 | |
public MuleEvent process(MuleEvent event) throws MuleException |
23 | |
{ |
24 | 0 | return event; |
25 | |
} |
26 | |
|
27 | |
@Override |
28 | |
public String toString() |
29 | |
{ |
30 | 0 | return ObjectUtils.toString(this); |
31 | |
} |
32 | |
|
33 | |
public List<MessageProcessor> getMessageProcessors() |
34 | |
{ |
35 | 0 | return Collections.emptyList(); |
36 | |
} |
37 | |
|
38 | |
public String getName() |
39 | |
{ |
40 | 0 | return null; |
41 | |
} |
42 | |
|
43 | |
public Policies getPolicies() |
44 | |
{ |
45 | 0 | return new Policies(this); |
46 | |
} |
47 | |
} |