airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1475781 - /airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/GFacAPI.java
Date Thu, 25 Apr 2013 14:04:16 GMT
Author: lahiru
Date: Thu Apr 25 14:04:16 2013
New Revision: 1475781

URL: http://svn.apache.org/r1475781
Log:
invoking initProperties.

Modified:
    airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/GFacAPI.java

Modified: airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/GFacAPI.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/GFacAPI.java?rev=1475781&r1=1475780&r2=1475781&view=diff
==============================================================================
--- airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/GFacAPI.java (original)
+++ airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/GFacAPI.java Thu
Apr 25 14:04:16 2013
@@ -120,6 +120,7 @@ public class GFacAPI {
             try {
                 handlerClass = Class.forName(handlerClassName.getClassName().trim()).asSubclass(GFacHandler.class);
                 handler = handlerClass.newInstance();
+                handler.initProperties(handlerClassName.getProperties());
             } catch (ClassNotFoundException e) {
                 throw new GFacException("Cannot load handler class " + handlerClassName,
e);
             } catch (InstantiationException e) {
@@ -144,6 +145,7 @@ public class GFacAPI {
             try {
                  handlerClass = Class.forName(handlerClassName.getClassName().trim()).asSubclass(GFacHandler.class);
                 handler = handlerClass.newInstance();
+                handler.initProperties(handlerClassName.getProperties());
             } catch (ClassNotFoundException e) {
                 log.error(e.getMessage());
                 throw new GFacException("Cannot load handler class " + handlerClassName,
e);



Mime
View raw message