com.mockrunner.mock.jms
Class MockConnectionMetaData

java.lang.Object
  extended by com.mockrunner.mock.jms.MockConnectionMetaData
All Implemented Interfaces:
java.io.Serializable, javax.jms.ConnectionMetaData

public class MockConnectionMetaData
extends java.lang.Object
implements javax.jms.ConnectionMetaData, java.io.Serializable

Mock implementation of JMS ConnectionMetaData.

See Also:
Serialized Form

Constructor Summary
MockConnectionMetaData()
           
 
Method Summary
 void addJMSXPropertyName(java.lang.String name)
           
 int getJMSMajorVersion()
           
 int getJMSMinorVersion()
           
 java.lang.String getJMSProviderName()
           
 java.lang.String getJMSVersion()
           
 java.util.Enumeration getJMSXPropertyNames()
           
 int getProviderMajorVersion()
           
 int getProviderMinorVersion()
           
 java.lang.String getProviderVersion()
           
 void setJMSMajorVersion(int jmsMajorVersion)
           
 void setJMSMinorVersion(int jmsMinorVersion)
           
 void setJMSProviderName(java.lang.String jmsProviderName)
           
 void setJMSVersion(java.lang.String jmsVersion)
           
 void setProviderMajorVersion(int providerMajorVersion)
           
 void setProviderMinorVersion(int providerMinorVersion)
           
 void setProviderVersion(java.lang.String providerVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockConnectionMetaData

public MockConnectionMetaData()
Method Detail

addJMSXPropertyName

public void addJMSXPropertyName(java.lang.String name)

setJMSMajorVersion

public void setJMSMajorVersion(int jmsMajorVersion)

setJMSMinorVersion

public void setJMSMinorVersion(int jmsMinorVersion)

setJMSProviderName

public void setJMSProviderName(java.lang.String jmsProviderName)

setJMSVersion

public void setJMSVersion(java.lang.String jmsVersion)

setProviderMajorVersion

public void setProviderMajorVersion(int providerMajorVersion)

setProviderMinorVersion

public void setProviderMinorVersion(int providerMinorVersion)

setProviderVersion

public void setProviderVersion(java.lang.String providerVersion)

getJMSMajorVersion

public int getJMSMajorVersion()
                       throws javax.jms.JMSException
Specified by:
getJMSMajorVersion in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException

getJMSMinorVersion

public int getJMSMinorVersion()
                       throws javax.jms.JMSException
Specified by:
getJMSMinorVersion in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException

getJMSProviderName

public java.lang.String getJMSProviderName()
                                    throws javax.jms.JMSException
Specified by:
getJMSProviderName in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException

getJMSVersion

public java.lang.String getJMSVersion()
                               throws javax.jms.JMSException
Specified by:
getJMSVersion in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException

getJMSXPropertyNames

public java.util.Enumeration getJMSXPropertyNames()
                                           throws javax.jms.JMSException
Specified by:
getJMSXPropertyNames in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException

getProviderMajorVersion

public int getProviderMajorVersion()
                            throws javax.jms.JMSException
Specified by:
getProviderMajorVersion in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException

getProviderMinorVersion

public int getProviderMinorVersion()
                            throws javax.jms.JMSException
Specified by:
getProviderMinorVersion in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException

getProviderVersion

public java.lang.String getProviderVersion()
                                    throws javax.jms.JMSException
Specified by:
getProviderVersion in interface javax.jms.ConnectionMetaData
Throws:
javax.jms.JMSException