[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Mon Mar 29 19:48:29 UTC 2010


gordonp
Mon Mar 29 15:48:28 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory dev.open-bio.org:/tmp/cvs-serv10180/src/main/org/biomoby/client

Modified Files:
	CentralImpl.java 
Log Message:
Updated to standard META-INF/services mechanism to get CentralImpl
moby-live/Java/src/main/org/biomoby/client CentralImpl.java,1.63,1.64
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2010/03/26 19:52:00	1.63
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2010/03/29 19:48:28	1.64
@@ -128,7 +128,7 @@
      * default class should be instantiated in order to create a Central Implementation     
      * when getDefaultCentral() is called.
      */
-    public static final String CENTRAL_IMPL_RESOURCE_NAME = "org.biomoby.shared.CentralDefaultImpl";
+    public static final String CENTRAL_IMPL_RESOURCE_NAME = "org.biomoby.client.CentralImpl";
     /** The class to use for getDefaultCentral if all else fails */
     public static final String DEFAULT_CENTRAL_IMPL_CLASSNAME = "org.biomoby.client.CentralDigestCachedImpl";
     private static Logger logger = Logger.getLogger("org.biomoby.client.CentralImpl");
@@ -1886,7 +1886,7 @@
 
 	String className = DEFAULT_CENTRAL_IMPL_CLASSNAME;
 	ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
-	URL resURL = classLoader.getResource("META-INF/"+CENTRAL_IMPL_RESOURCE_NAME);
+	URL resURL = classLoader.getResource("META-INF/services/"+CENTRAL_IMPL_RESOURCE_NAME);
 	if(resURL != null){
 	    System.err.println("Loading "+resURL);
 	    try{




More information about the MOBY-guts mailing list