com.github.smokestack.jms
Class MockTopic

java.lang.Object
  extended by com.github.smokestack.jms.MockTopic
All Implemented Interfaces:
Serializable, Destination, Topic, Referenceable

public class MockTopic
extends Object
implements Topic, Serializable, Referenceable

Author:
gliptak
See Also:
Serialized Form

Field Summary
protected  Reference reference
           
protected  String topicName
           
 
Constructor Summary
MockTopic(String topicName)
           
 
Method Summary
 Reference _getReference()
           
 String _getTopicName()
           
 void _setReference(Reference reference)
           
 Reference getReference()
           
 String getTopicName()
           
 void setReference(Reference reference)
          Making a setter available
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

topicName

protected String topicName

reference

protected Reference reference
Constructor Detail

MockTopic

public MockTopic(String topicName)
Parameters:
topicName -
Method Detail

getTopicName

public String getTopicName()
                    throws JMSException
Specified by:
getTopicName in interface Topic
Throws:
JMSException

_getTopicName

public String _getTopicName()
                     throws JMSException
Throws:
JMSException

getReference

public Reference getReference()
                       throws NamingException
Specified by:
getReference in interface Referenceable
Throws:
NamingException

_getReference

public Reference _getReference()
                        throws NamingException
Throws:
NamingException

setReference

public void setReference(Reference reference)
Making a setter available

Parameters:
reference -

_setReference

public void _setReference(Reference reference)

toString

public String toString()
Specified by:
toString in interface Topic
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.