KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > tck > functional > FunctionalTestNotification


1 /*
2  * $Id: FunctionalTestNotification.java 3937 2006-11-20 16:04:25Z lajos $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
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  * TODO document
19  */

20 public class FunctionalTestNotification extends CustomNotification
21 {
22     /**
23      * Serial version
24      */

25     private static final long serialVersionUID = -3435373745940904597L;
26
27     public static final int EVENT_RECEIVED = -999999;
28
29     private final Object JavaDoc replyMessage;
30     private final UMOEventContext eventContext;
31
32     public FunctionalTestNotification(UMOEventContext context, Object JavaDoc replyMessage, int action)
33         throws TransformerException
34     {
35         super(context.getTransformedMessage(), action);
36         resourceIdentifier = context.getComponentDescriptor().getName();
37         this.replyMessage = replyMessage;
38         this.eventContext = context;
39     }
40
41     public Object JavaDoc getReplyMessage()
42     {
43         return replyMessage;
44     }
45
46     public UMOEventContext getEventContext()
47     {
48         return eventContext;
49     }
50 }
51
Popular Tags