juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r1089466 - /juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/embed/JUDDIRegistry.java
Date Wed, 06 Apr 2011 14:09:01 GMT
Author: kstam
Date: Wed Apr  6 14:09:01 2011
New Revision: 1089466

URL: http://svn.apache.org/viewvc?rev=1089466&view=rev
Log:
JUDDI-450, call start/stop on the class not the object since it is a singleton

Modified:
    juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/embed/JUDDIRegistry.java

Modified: juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/embed/JUDDIRegistry.java
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/embed/JUDDIRegistry.java?rev=1089466&r1=1089465&r2=1089466&view=diff
==============================================================================
--- juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/embed/JUDDIRegistry.java
(original)
+++ juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/embed/JUDDIRegistry.java
Wed Apr  6 14:09:01 2011
@@ -12,9 +12,8 @@ public class JUDDIRegistry implements Em
 	public void start() {
 		try {
 			Class<?> juddiRegistry = ClassUtil.forName("org.apache.juddi.Registry", JUDDIRegistry.class);
-			Object jUDDI =  juddiRegistry.newInstance();
 			Method startMethod = juddiRegistry.getDeclaredMethod("start");
-			startMethod.invoke(jUDDI);
+			startMethod.invoke(juddiRegistry);
 		} catch (Exception e) {
 			logger.error(e.getMessage(),e);
 		}
@@ -23,9 +22,8 @@ public class JUDDIRegistry implements Em
 	public void stop() {
 		try {
 			Class<?> juddiRegistry = ClassUtil.forName("org.apache.juddi.Registry", JUDDIRegistry.class);
-			Object jUDDI =  juddiRegistry.newInstance();
-			Method startMethod = juddiRegistry.getDeclaredMethod("stop");
-			startMethod.invoke(jUDDI);
+			Method stopMethod = juddiRegistry.getDeclaredMethod("stop");
+			stopMethod.invoke(juddiRegistry);
 		} catch (Exception e) {
 			logger.error(e.getMessage(),e);
 		}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message