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