com.github.smokestack.jms
Class MockQueue

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

public class MockQueue
extends Object
implements Queue, Serializable, Referenceable

Author:
gliptak
See Also:
Serialized Form

Field Summary
protected  String queueName
           
protected  Reference reference
           
 
Constructor Summary
MockQueue(String queueName)
           
 
Method Summary
 String _getQueueName()
           
 Reference _getReference()
           
 void _setReference(Reference reference)
           
 String getQueueName()
           
 Reference getReference()
           
 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

queueName

protected String queueName

reference

protected Reference reference
Constructor Detail

MockQueue

public MockQueue(String queueName)
Parameters:
queueName -
Method Detail

getQueueName

public String getQueueName()
                    throws JMSException
Specified by:
getQueueName in interface Queue
Throws:
JMSException

_getQueueName

public String _getQueueName()
                     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 Queue
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.