Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /jms4spread/src/java/org/tigris/jms4spread/

jms4spread
Discussion topic

Back to topic list

CVS update: /jms4spread/src/java/org/tigris/jms4spread/

Reply

Author dlr
Full name Daniel Rall
Date 2002-07-21 18:12:31 PDT
Message User: dlr
Date: 02/07/21 18:12:31

Modified
 /jms4spread/src/java​/org/tigris/jms4spre​ad/
  JMSConnectionMetaData.java

Log
 Added support for a (currently empty) JMSX property names list.

File Changes:

Directory: /jms4spread/src/java​/org/tigris/jms4spre​ad/
====================​====================​==============

File [changed]: JMSConnectionMetaData.java
Url: http://jms4spread.ti​gris.org/source/brow​se/jms4spread/src/ja​va/org/tigris/jms4sp​read/JMSConnectionMe​taData.java.diff?r1=​1.1&r2=1.2
Delta lines: +13 -5
--------------------
--- JMSConnectionMetaData.java 22 Jul 2002 00:58:01 -0000 1.1
+++ JMSConnectionMetaData.java 22 Jul 2002 01:12:31 -0000 1.2
@@ -1,6 +1,7 @@
 package org.tigris.jms4spread;
 
 import java.util.Enumeration;
+import java.util.NoSuchElem​entException;
 
 import javax.jms.ConnectionMetaData;
 import javax.jms.JMSException;
@@ -13,6 +14,11 @@
     implements ConnectionMetaData
 {
     /**
+ * A list of JMSX property names.
+ */
+ private static final String[] PROPERTY_NAMES = {};
+
+ /**
      * Replaced by build process.
      */
     private static final String PROVIDER_VERSION = "@JMS4SPREAD_VERSION@";
@@ -104,18 +110,20 @@
     private class JMSXEnumeration
         implements Enumeration
     {
- public JMSXEnumeration()
- {
- }
+ private int index = 0;
 
         public boolean hasMoreElements()
         {
- return false;
+ return (index < PROPERTY_NAMES.length);
         }
 
         public Object nextElement()
         {
- return null;
+ if (!hasMoreElements())
+ {
+ throw new NoSuchElementException();
+ }
+ return PROPERTY_NAMES[index];
         }
     }
 }




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@jms4​spread.tigris.org
For additional commands, e-mail: cvs-help at jms4spread dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /jms4spread/src/java/org/tigris/jms4spread/ dlr Daniel Rall 2002-07-21 18:12:31 PDT
Messages per page: