airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramin...@apache.org
Subject svn commit: r1400905 - /airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/AiravataRegistryFactory.java
Date Mon, 22 Oct 2012 14:57:13 GMT
Author: raminder
Date: Mon Oct 22 14:57:12 2012
New Revision: 1400905

URL: http://svn.apache.org/viewvc?rev=1400905&view=rev
Log:
Error was not thrown if property file don't exists.AIRAVATA-617

Modified:
    airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/AiravataRegistryFactory.java

Modified: airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/AiravataRegistryFactory.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/AiravataRegistryFactory.java?rev=1400905&r1=1400904&r2=1400905&view=diff
==============================================================================
--- airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/AiravataRegistryFactory.java
(original)
+++ airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/AiravataRegistryFactory.java
Mon Oct 22 14:57:12 2012
@@ -40,7 +40,7 @@ public class AiravataRegistryFactory {
 	/***
 	 * Return a registry accessor object capable of handling all data in the
 	 * registry
-	 * 
+	 *
 	 * @param gateway
 	 * @param user
 	 * @return
@@ -69,7 +69,7 @@ public class AiravataRegistryFactory {
 	/***
 	 * Given the key in the <code>REPOSITORY_PROPERTIES</code> file it will
 	 * attempt to instantiate a class from the value of the property
-	 * 
+	 *
 	 * @param registryClassKey
 	 * @return
 	 * @throws RegistryAccessorNotFoundException
@@ -113,19 +113,20 @@ public class AiravataRegistryFactory {
 				throw new AiravataConfigurationException(
 						"Error reading the configuration file", e);
 			}
+		}else{
+			throw new AiravataConfigurationException(
+					"Error loading the configuration file", e);
 		}
-		return null;
-
 	}
-	
+
 	public static void registerRegistryConnectionDataProvider(AiravataRegistryConnectionDataProvider
provider){
 		dataProvider=provider;
 	}
-	
+
 	public static void unregisterRegistryConnectionDataProvider(){
 		dataProvider=null;
 	}
-	
+
 	public static AiravataRegistryConnectionDataProvider getRegistryConnectionDataProvider(){
 		return dataProvider;
 	}



Mime
View raw message