View Javadoc

1   /*
2    * $Id: FunctionalTestNotification.java 7963 2007-08-21 08:53:15Z dirk.olmes $
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 CPAL v1.0
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 replyMessage;
30      private final UMOEventContext eventContext;
31  
32      public FunctionalTestNotification(UMOEventContext context, Object 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 getReplyMessage()
42      {
43          return replyMessage;
44      }
45  
46      public UMOEventContext getEventContext()
47      {
48          return eventContext;
49      }
50  }