KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > extras > spring > events > MuleSubscriptionEventListener


1 /*
2  * $Id: MuleSubscriptionEventListener.java 3798 2006-11-04 04:07:14Z aperepel $
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.extras.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 JavaDoc[] getSubscriptions();
27
28     public void setSubscriptions(String JavaDoc[] subscriptions);
29 }
30
Popular Tags