1 /* 2 * $Id: FunctionalTestNotificationListener.java 19191 2010-08-25 21:05:23Z tcarlson $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.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.api.MuleContext; 14 import org.mule.api.context.notification.CustomNotificationListener; 15 import org.mule.api.context.notification.ServerNotificationListener; 16 17 /** 18 * By implementing this listener interface and registering the object with the 19 * {@link MuleContext#registerListener(ServerNotificationListener)} 20 * You can receive {@link FunctionalTestNotification}s from the {@link FunctionalTestComponent}. 21 * 22 * This Notification contains the current MuleEventContext and reply message. The resource 23 * identifier for this event is the service name that received the message. This means you can 24 * register to listen to Notifications from a selected {@link FunctionalTestComponent}. i.e. 25 * <code> 26 * muleContext.registerListener(this, "*JmsTestCompoennt"); 27 * </code> 28 * 29 * This registration would only receive {@link FunctionalTestNotification} objects from components 30 * called 'MyJmsTestComponent' and 'YourJmsTestComponent' but not 'HerFileTestComponent'. 31 * 32 * To receive all notifications simply do - 33 * <code> 34 * muleContext.registerListener(this"); 35 * </code> 36 * 37 * @see FunctionalTestComponent 38 * @see FunctionalTestNotificationListener 39 * @see MuleContext 40 */ 41 public interface FunctionalTestNotificationListener extends CustomNotificationListener 42 { 43 // no methods 44 }