1 /* 2 * $Id: MuleSubscriptionEventListener.java 10789 2008-02-12 20:04:43Z 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.module.spring.events; 12 13 /** 14 * <code>MuleSubscriptionEventListener</code> is a Spring ApplicationListener that 15 * is used to register interest about Mule events. The developer can supply an array 16 * of endpoints that it wishes to subscribe to. i.e. new String[]{ 17 * "file/C:/dev/test/data", "my.jms.queue", "http://www.mycompaony.com/events"}; You 18 * can aslo specify logical endpoints that are configured on the Mule Server so you 19 * can use more friendly names such as new String[]{ "testData", "OrdersJms", 20 * "eventsHttp"}; By specifying '*' as the subscription, all events will be received 21 * by this listener. 22 */ 23 24 public interface MuleSubscriptionEventListener extends MuleEventListener 25 { 26 public String[] getSubscriptions(); 27 28 public void setSubscriptions(String[] subscriptions); 29 }