You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ra...@apache.org on 2012/10/22 16:57:13 UTC
svn commit: r1400905 -
/airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/AiravataRegistryFactory.java
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;
}