KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > destination > JBossTemporaryTopic


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.destination;
8
9 import javax.jms.JMSException JavaDoc;
10 import javax.jms.TemporaryTopic JavaDoc;
11
12 import org.jboss.jms.client.ConnectionDelegate;
13
14 /**
15  * A temporary topic
16  *
17  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
18  * @version $Revision: 1.3 $
19  */

20 public class JBossTemporaryTopic
21    extends JBossTopic
22    implements TemporaryTopic JavaDoc, JBossTemporaryDestination
23 {
24    // Constants -----------------------------------------------------
25

26    // Attributes ----------------------------------------------------
27

28    /** The connection */
29    private ConnectionDelegate delegate;
30
31    // Static --------------------------------------------------------
32

33    // Constructors --------------------------------------------------
34

35    /**
36     * Construct a new temporary topic
37     *
38     * @param delegate the connection
39     * @param name the name
40     */

41    public JBossTemporaryTopic(ConnectionDelegate delegate, String JavaDoc name)
42    {
43       super(name);
44       this.delegate = delegate;
45    }
46
47    // Public --------------------------------------------------------
48

49    // TemporaryTopic implementation ---------------------------------
50

51    public void delete()
52       throws JMSException JavaDoc
53    {
54       delegate.deleteTempDestination(this);
55    }
56
57    // Protected ------------------------------------------------------
58

59    // Package Private ------------------------------------------------
60

61    // Private --------------------------------------------------------
62

63    // Inner Classes --------------------------------------------------
64

65 }
66
Popular Tags