You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2011/04/06 16:09:01 UTC
svn commit: r1089466 -
/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/embed/JUDDIRegistry.java
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