| Home >> All >> org >> mom4j >> [ jms Javadoc ] |
Source code: org/mom4j/jms/TopicImpl.java
1 package org.mom4j.jms; 2 3 import javax.jms.Topic; 4 import javax.jms.JMSException; 5 6 7 /** 8 * 9 */ 10 public class TopicImpl extends DestinationImpl implements Topic { 11 12 public static final String ID = "topic:"; 13 14 /** Creates new Destination */ 15 public TopicImpl(String name) { 16 super(name); 17 } 18 19 20 public String toString() { 21 return ID + this.getName(); 22 } 23 24 25 public String getTopicName() 26 throws JMSException 27 { 28 return this.getName(); 29 } 30 31 }