1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.tck.functional; |
12 | |
|
13 | |
import org.mule.impl.internal.notifications.CustomNotification; |
14 | |
import org.mule.umo.UMOEventContext; |
15 | |
import org.mule.umo.transformer.TransformerException; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
public class FunctionalTestNotification extends CustomNotification |
21 | |
{ |
22 | |
|
23 | |
|
24 | |
|
25 | |
private static final long serialVersionUID = -3435373745940904597L; |
26 | |
|
27 | |
public static final int EVENT_RECEIVED = -999999; |
28 | |
|
29 | |
private final Object replyMessage; |
30 | |
private final UMOEventContext eventContext; |
31 | |
|
32 | |
public FunctionalTestNotification(UMOEventContext context, Object replyMessage, int action) |
33 | |
throws TransformerException |
34 | |
{ |
35 | 0 | super(context.getTransformedMessage(), action); |
36 | 0 | resourceIdentifier = context.getComponentDescriptor().getName(); |
37 | 0 | this.replyMessage = replyMessage; |
38 | 0 | this.eventContext = context; |
39 | 0 | } |
40 | |
|
41 | |
public Object getReplyMessage() |
42 | |
{ |
43 | 0 | return replyMessage; |
44 | |
} |
45 | |
|
46 | |
public UMOEventContext getEventContext() |
47 | |
{ |
48 | 0 | return eventContext; |
49 | |
} |
50 | |
} |