KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > server > standard > QueueBrowserEndpointFactory


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.server.standard;
8
9 import org.jboss.jms.server.BrowserEndpoint;
10 import org.jboss.jms.server.BrowserEndpointFactory;
11 import org.jboss.jms.server.list.MessageList;
12
13 /**
14  * A queue delivery endpoint factory
15  *
16  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
17  * @version $Revision: 1.1 $
18  */

19 public class QueueBrowserEndpointFactory
20    implements BrowserEndpointFactory
21 {
22    // Constants -----------------------------------------------------
23

24    // Attributes ----------------------------------------------------
25

26    /** The message list */
27    private MessageList list;
28
29    /** The selector */
30    private String JavaDoc selector;
31
32    // Static --------------------------------------------------------
33

34    // Constructors --------------------------------------------------
35

36    public QueueBrowserEndpointFactory(MessageList list, String JavaDoc selector)
37    {
38       this.list = list;
39       this.selector = selector;
40    }
41
42    // Public --------------------------------------------------------
43

44    // BrowserEndpointFactory implementation -------------------------
45

46    public BrowserEndpoint getBrowserEndpoint()
47    {
48       return new QueueBrowserEndpoint(list, selector);
49    }
50
51    // Protected ------------------------------------------------------
52

53    // Package Private ------------------------------------------------
54

55    // Private --------------------------------------------------------
56

57    // Inner Classes --------------------------------------------------
58

59 }
60
Popular Tags