tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r573415 - in /incubator/tuscany/java/sca/modules: implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASInvoker.java implementation-data/src/main/java/org/apache/tuscany/sca/implementation/data/das/
Date Fri, 07 Sep 2007 00:07:10 GMT
Author: lresende
Date: Thu Sep  6 17:07:09 2007
New Revision: 573415

URL: http://svn.apache.org/viewvc?rev=573415&view=rev
Log:
Adding dynamic mapping from interface to das command

Removed:
    incubator/tuscany/java/sca/modules/implementation-data/src/main/java/org/apache/tuscany/sca/implementation/data/das/
Modified:
    incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASInvoker.java

Modified: incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASInvoker.java?rev=573415&r1=573414&r2=573415&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASInvoker.java
(original)
+++ incubator/tuscany/java/sca/modules/implementation-das/src/main/java/org/apache/tuscany/sca/implementation/das/provider/DASInvoker.java
Thu Sep  6 17:07:09 2007
@@ -57,6 +57,7 @@
     }
 
     public Object doTheWork(Object[] args) throws InvocationTargetException {
+        //check if static way
         if (operation.getName().equals("executeCommand")) {
             String commandName, xPath;
             
@@ -70,8 +71,8 @@
                 
                 return this.dataAccessEngine.executeCommand(commandName, xPath);
             }
-        } else {
-            return null;
+        } else { // dynamic mapping to command
+            return this.dataAccessEngine.executeCommand(operation.getName());
         }
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message