You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/02/12 07:44:22 UTC

svn commit: r506332 - /incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPImplementationExtension.cpp

Author: jsdelfino
Date: Sun Feb 11 22:44:21 2007
New Revision: 506332

URL: http://svn.apache.org/viewvc?view=rev&rev=506332
Log:
Simplified parsing of implementation extension

Modified:
    incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPImplementationExtension.cpp

Modified: incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPImplementationExtension.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPImplementationExtension.cpp?view=diff&rev=506332&r1=506331&r2=506332
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPImplementationExtension.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/php/src/tuscany/sca/php/PHPImplementationExtension.cpp Sun Feb 11 22:44:21 2007
@@ -60,20 +60,12 @@
             {
                 logentry();
                 
-                string implType = scdlImplementation->getType().getName();
-                if (implType == "PHPImplementation")
-                {
-                    string module = scdlImplementation->getCString("module");
-                    string className = scdlImplementation->getCString("class");
-                    
-                    PHPImplementation* phpImpl = new PHPImplementation(composite, module, className);
-                    
-                    return phpImpl;
-                }
-                else
-                {
-                    return NULL;
-                }
+                string module = scdlImplementation->getCString("module");
+                string className = scdlImplementation->getCString("class");
+                
+                PHPImplementation* phpImpl = new PHPImplementation(composite, module, className);
+                
+                return phpImpl;
             }
 
         } // End namespace php



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