package org.mockejb.jms;
import java.util.Enumeration;
import java.util.NoSuchElementException;
import javax.jms.ConnectionMetaData;
import javax.jms.JMSException;
class ConnectionMetaDataImpl implements ConnectionMetaData {
public String getJMSVersion() throws JMSException {
return getJMSMajorVersion() + "." + getJMSMinorVersion();
}
public int getJMSMajorVersion() throws JMSException {
return 1;
}
public int getJMSMinorVersion() throws JMSException {
return 1;
}
public String getJMSProviderName() throws JMSException {
return "MockEjb";
}
public String getProviderVersion() throws JMSException {
return getProviderMajorVersion() + "." + getProviderMinorVersion();
}
public int getProviderMajorVersion() throws JMSException {
return 1;
}
public int getProviderMinorVersion() throws JMSException {
return 0;
}
public Enumeration getJMSXPropertyNames() throws JMSException {
return new Enumeration() {
public boolean hasMoreElements() {
return false;
}
public Object nextElement() {
throw new NoSuchElementException();
}
};
}
}