You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by pe...@apache.org on 2010/07/11 04:25:54 UTC

svn commit: r962971 - /incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/RunningServiceAdmin.java

Author: peter_firmstone
Date: Sun Jul 11 02:25:54 2010
New Revision: 962971

URL: http://svn.apache.org/viewvc?rev=962971&view=rev
Log:
River Refactoring.

LookupDiscoveryManager constructor with empty configuration,  has been changed to throw a ConfigurationException, this breaks compile time compatibility, but not binary compatiblity.  The reason the constructor was changed was to allow some private variables to be declared final and initialized in a constructor.

Modified:
    incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/RunningServiceAdmin.java

Modified: incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/RunningServiceAdmin.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/RunningServiceAdmin.java?rev=962971&r1=962970&r2=962971&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/RunningServiceAdmin.java (original)
+++ incubator/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/RunningServiceAdmin.java Sun Jul 11 02:25:54 2010
@@ -27,6 +27,8 @@ import java.util.logging.Level;
 import java.util.NoSuchElementException;
 
 // net.jini
+import java.util.logging.Logger;
+import net.jini.config.ConfigurationException;
 import net.jini.core.lookup.ServiceRegistrar;
 import net.jini.core.lookup.ServiceTemplate;
 import net.jini.discovery.LookupDiscoveryManager;
@@ -137,7 +139,10 @@ public class RunningServiceAdmin extends
 	    manager = new LookupDiscoveryManager(getGroups(),
 						 getLocators(),
 						 listener);
-	} catch (IOException e) {
+        } catch (ConfigurationException e) {
+            throw new TestException("failed to create a LookupDiscoveryManager",
+				    e);
+        } catch (IOException e) {
 	    throw new TestException("failed to create a LookupDiscoveryManager",
 				    e);
 	}