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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to