You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ro...@apache.org on 2006/10/03 13:06:13 UTC

svn commit: r452416 [1/3] - in /incubator/tuscany/cpp/sca/runtime/extensions/python/src: osoa/sca/ tuscany/sca/python/ tuscany/sca/python/model/

Author: robbinspg
Date: Tue Oct  3 04:06:12 2006
New Revision: 452416

URL: http://svn.apache.org/viewvc?view=rev&rev=452416
Log:
Update svn-properties

Modified:
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/osoa/sca/ServiceRuntimeException.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/export.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonImplementation.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonImplementation.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonInterface.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonInterface.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonReferenceBinding.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonReferenceBinding.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonServiceBinding.cpp   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/model/PythonServiceBinding.h   (contents, props changed)
    incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/sca_module.cpp   (contents, props changed)

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/osoa/sca/ServiceRuntimeException.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/osoa/sca/ServiceRuntimeException.h?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/osoa/sca/ServiceRuntimeException.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/osoa/sca/ServiceRuntimeException.h Tue Oct  3 04:06:12 2006
@@ -1,113 +1,113 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef osoa_sca_serviceruntimeexception_h
-#define osoa_sca_serviceruntimeexception_h
-
-#include "tuscany/sca/python/export.h"
-
-#include "tuscany/sca/util/Exceptions.h"
-using tuscany::sca::TuscanyRuntimeException;
-namespace osoa
-{
-    namespace sca
-    {
-        /**
-         * Top level exception to represent all the exceptions that may be 
-         * thrown by an SCA runtime implementation.
-         */
-        class ServiceRuntimeException : public TuscanyRuntimeException
-        {
-        public:
-            ServiceRuntimeException(
-                const char *name="ServiceRuntimeException",
-                severity_level sev=Severe,
-                const char* msg_text="")
-                : TuscanyRuntimeException(name, sev, msg_text)
-            {
-            }
-        }; // End ServiceRuntimeException class definition
-        
-
-        /**
-         * A remotable service is currently unavailable. It is possible that a retry
-         * may resolve this exception.
-         */
-        class ServiceUnavailableException: public ServiceRuntimeException
-        {
-        public:
-            ServiceUnavailableException(const char* serviceName)
-                : ServiceRuntimeException("ServiceUnavailableException", Warning,
-                serviceName)
-            {
-            }
-        private:
-        }; // End ServiceUnavailableException class definition
-
-
-        /**
-         * The target of a wire cannot be found, or the reference has not been
-         * configured.
-         */
-        class ServiceNotFoundException: public ServiceRuntimeException
-        {
-        public:
-            ServiceNotFoundException(const char* msg)
-                : ServiceRuntimeException("ServiceNotFoundException", Error,
-                msg)
-            {
-            }
-        private:
-        }; // End ServiceNotFoundException class definition
-
-
-        /**
-         * There is no current component (for example, if a non-SCA component
-         * tries to get the current ComponentContext).
-         */
-        class ComponentContextException: public ServiceRuntimeException
-        {
-        public:
-            ComponentContextException(const char* msg)
-                : ServiceRuntimeException("ComponentContextException", Error,
-                msg)
-            {
-            }
-        private:
-        }; // End ComponentContextException class definition
-        
-        /**
-         * There is an error whilst trying to invoke a component.
-         */
-        class ComponentInvocationException: public ServiceRuntimeException
-        {
-        public:
-            ComponentInvocationException(const char* msg)
-                : ServiceRuntimeException("ComponentInvocationException", Error,
-                msg)
-            {
-            }
-        private:
-        }; // End ComponentInvocationException class definition
-        
-        
-    } // End namespace sca
-} // End namespace osoa
-
-#endif // osoa_sca_serviceruntimeexception_h
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef osoa_sca_serviceruntimeexception_h
+#define osoa_sca_serviceruntimeexception_h
+
+#include "tuscany/sca/python/export.h"
+
+#include "tuscany/sca/util/Exceptions.h"
+using tuscany::sca::TuscanyRuntimeException;
+namespace osoa
+{
+    namespace sca
+    {
+        /**
+         * Top level exception to represent all the exceptions that may be 
+         * thrown by an SCA runtime implementation.
+         */
+        class ServiceRuntimeException : public TuscanyRuntimeException
+        {
+        public:
+            ServiceRuntimeException(
+                const char *name="ServiceRuntimeException",
+                severity_level sev=Severe,
+                const char* msg_text="")
+                : TuscanyRuntimeException(name, sev, msg_text)
+            {
+            }
+        }; // End ServiceRuntimeException class definition
+        
+
+        /**
+         * A remotable service is currently unavailable. It is possible that a retry
+         * may resolve this exception.
+         */
+        class ServiceUnavailableException: public ServiceRuntimeException
+        {
+        public:
+            ServiceUnavailableException(const char* serviceName)
+                : ServiceRuntimeException("ServiceUnavailableException", Warning,
+                serviceName)
+            {
+            }
+        private:
+        }; // End ServiceUnavailableException class definition
+
+
+        /**
+         * The target of a wire cannot be found, or the reference has not been
+         * configured.
+         */
+        class ServiceNotFoundException: public ServiceRuntimeException
+        {
+        public:
+            ServiceNotFoundException(const char* msg)
+                : ServiceRuntimeException("ServiceNotFoundException", Error,
+                msg)
+            {
+            }
+        private:
+        }; // End ServiceNotFoundException class definition
+
+
+        /**
+         * There is no current component (for example, if a non-SCA component
+         * tries to get the current ComponentContext).
+         */
+        class ComponentContextException: public ServiceRuntimeException
+        {
+        public:
+            ComponentContextException(const char* msg)
+                : ServiceRuntimeException("ComponentContextException", Error,
+                msg)
+            {
+            }
+        private:
+        }; // End ComponentContextException class definition
+        
+        /**
+         * There is an error whilst trying to invoke a component.
+         */
+        class ComponentInvocationException: public ServiceRuntimeException
+        {
+        public:
+            ComponentInvocationException(const char* msg)
+                : ServiceRuntimeException("ComponentInvocationException", Error,
+                msg)
+            {
+            }
+        private:
+        }; // End ComponentInvocationException class definition
+        
+        
+    } // End namespace sca
+} // End namespace osoa
+
+#endif // osoa_sca_serviceruntimeexception_h

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/osoa/sca/ServiceRuntimeException.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/osoa/sca/ServiceRuntimeException.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.cpp?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.cpp Tue Oct  3 04:06:12 2006
@@ -1,72 +1,72 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements.  See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership.  The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License.  You may obtain a copy of the License at
-* 
-*   http://www.apache.org/licenses/LICENSE-2.0
-*   
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied.  See the License for the
-* specific language governing permissions and limitations
-* under the License.
-*/
-
-#include "tuscany/sca/python/PythonExtension.h"
-#include "tuscany/sca/util/Logging.h"
-#include "tuscany/sca/core/SCARuntime.h"
-#include "tuscany/sca/python/PythonImplementationExtension.h"
-#include "tuscany/sca/python/PythonInterfaceExtension.h"
-
-
-extern "C"
-{
-    #if defined(WIN32) || defined(_WINDOWS)
-    __declspec(dllexport) 
-    #endif
-        void tuscany_sca_extension_initialize()
-    {
-        tuscany::sca::python::PythonExtension::initialize();
-    }
-}
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            // ===================================================================
-            // Constructor for the PythonExtension class. 
-            // ===================================================================
-            PythonExtension::PythonExtension()
-            { 
-                LOGENTRY(1, "PythonExtension::constructor");     
-                LOGEXIT(1, "PythonExtension::constructor");
-            }
-            
-            // ===================================================================
-            // Destructor for the PythonExtension class.
-            // ===================================================================
-            PythonExtension::~PythonExtension()
-            { 
-                LOGENTRY(1, "PythonExtension::destructor");;           
-                LOGEXIT(1, "PythonExtension::destructor");
-            }
-
-            void PythonExtension::initialize()
-            { 
-                LOGENTRY(1, "PythonExtension::initialize");;           
-                SCARuntime::getInstance()->registerImplementationExtension(new PythonImplementationExtension());
-                SCARuntime::getInstance()->registerInterfaceExtension(new PythonInterfaceExtension());
-                LOGEXIT(1, "PythonExtension::initialize");;           
-            }
-
-        } // End namespace python
-    } // End namespace sca
-} // End namespace tuscany
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+* 
+*   http://www.apache.org/licenses/LICENSE-2.0
+*   
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+#include "tuscany/sca/python/PythonExtension.h"
+#include "tuscany/sca/util/Logging.h"
+#include "tuscany/sca/core/SCARuntime.h"
+#include "tuscany/sca/python/PythonImplementationExtension.h"
+#include "tuscany/sca/python/PythonInterfaceExtension.h"
+
+
+extern "C"
+{
+    #if defined(WIN32) || defined(_WINDOWS)
+    __declspec(dllexport) 
+    #endif
+        void tuscany_sca_extension_initialize()
+    {
+        tuscany::sca::python::PythonExtension::initialize();
+    }
+}
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            // ===================================================================
+            // Constructor for the PythonExtension class. 
+            // ===================================================================
+            PythonExtension::PythonExtension()
+            { 
+                LOGENTRY(1, "PythonExtension::constructor");     
+                LOGEXIT(1, "PythonExtension::constructor");
+            }
+            
+            // ===================================================================
+            // Destructor for the PythonExtension class.
+            // ===================================================================
+            PythonExtension::~PythonExtension()
+            { 
+                LOGENTRY(1, "PythonExtension::destructor");;           
+                LOGEXIT(1, "PythonExtension::destructor");
+            }
+
+            void PythonExtension::initialize()
+            { 
+                LOGENTRY(1, "PythonExtension::initialize");;           
+                SCARuntime::getInstance()->registerImplementationExtension(new PythonImplementationExtension());
+                SCARuntime::getInstance()->registerInterfaceExtension(new PythonInterfaceExtension());
+                LOGEXIT(1, "PythonExtension::initialize");;           
+            }
+
+        } // End namespace python
+    } // End namespace sca
+} // End namespace tuscany

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.h?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.h Tue Oct  3 04:06:12 2006
@@ -1,55 +1,55 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef tuscany_sca_python_pythonextension_h
-#define tuscany_sca_python_pythonextension_h
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            
-            class PythonExtension 
-            {
-            public:
-               /**
-                * Default constructor
-                */
-                PythonExtension();            
-                
-                /**
-                * Destructor
-                */
-                virtual ~PythonExtension();            
-
-                static void initialize();
-                
-            private:
-                
-            };
-            
-            
-        } // End namespace python       
-    } // End namespace sca
-} // End namespace tuscany
-
-#endif // tuscany_sca_python_pythonextension_h
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef tuscany_sca_python_pythonextension_h
+#define tuscany_sca_python_pythonextension_h
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            
+            class PythonExtension 
+            {
+            public:
+               /**
+                * Default constructor
+                */
+                PythonExtension();            
+                
+                /**
+                * Destructor
+                */
+                virtual ~PythonExtension();            
+
+                static void initialize();
+                
+            private:
+                
+            };
+            
+            
+        } // End namespace python       
+    } // End namespace sca
+} // End namespace tuscany
+
+#endif // tuscany_sca_python_pythonextension_h
+

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonExtension.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp Tue Oct  3 04:06:12 2006
@@ -1,88 +1,88 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "tuscany/sca/python/PythonImplementationExtension.h"
-#include "tuscany/sca/python/model/PythonImplementation.h"
-#include "tuscany/sca/util/Logging.h"
-#include "tuscany/sca/util/Utils.h"
-
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            // ===================================================================
-            // Constructor for the PythonImplementationExtension class. 
-            // ===================================================================
-            PythonImplementationExtension::PythonImplementationExtension()
-            { 
-                LOGENTRY(1, "PythonImplementationExtension::constructor");     
-                LOGEXIT(1, "PythonImplementationExtension::constructor");
-            }
-            
-            // ===================================================================
-            // Destructor for the PythonImplementationExtension class.
-            // ===================================================================
-            PythonImplementationExtension::~PythonImplementationExtension()
-            { 
-                LOGENTRY(1, "PythonImplementationExtension::destructor");;           
-                LOGEXIT(1, "PythonImplementationExtension::destructor");
-            }
-
-            const string PythonImplementationExtension::extensionName("python");
-            const string PythonImplementationExtension::typeQName("http://www.osoa.org/xmlns/sca/1.0#PythonImplementation");
-
-            // ===================================================================
-            // loadModelElement - load the info from implementation.python 
-            // ===================================================================
-            ComponentType* PythonImplementationExtension::getImplementation(Composite *composite, DataObjectPtr scdlImplementation)
-            {
-                string implType = scdlImplementation->getType().getName();
-                if (implType == "PythonImplementation")
-                {
-                    string module = scdlImplementation->getCString("module");
-                    string path = scdlImplementation->getCString("path");
-                    string className = scdlImplementation->getCString("class");
-                    string scopeName = scdlImplementation->getCString("scope");
-                    
-                    PythonImplementation::Scope scope;
-                    if (scopeName == "composite")
-                    {
-                        scope = PythonImplementation::COMPOSITE;
-                    }
-                    else
-                    {
-                        scope = PythonImplementation::STATELESS;
-                    }
-
-                    PythonImplementation* pythonImpl = new PythonImplementation(composite, module, path, className, scope);
-                    
-                    return pythonImpl;
-                }
-                else
-                {
-                    return NULL;
-                }
-            }
-
-        } // End namespace python
-    } // End namespace sca
-} // End namespace tuscany
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "tuscany/sca/python/PythonImplementationExtension.h"
+#include "tuscany/sca/python/model/PythonImplementation.h"
+#include "tuscany/sca/util/Logging.h"
+#include "tuscany/sca/util/Utils.h"
+
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            // ===================================================================
+            // Constructor for the PythonImplementationExtension class. 
+            // ===================================================================
+            PythonImplementationExtension::PythonImplementationExtension()
+            { 
+                LOGENTRY(1, "PythonImplementationExtension::constructor");     
+                LOGEXIT(1, "PythonImplementationExtension::constructor");
+            }
+            
+            // ===================================================================
+            // Destructor for the PythonImplementationExtension class.
+            // ===================================================================
+            PythonImplementationExtension::~PythonImplementationExtension()
+            { 
+                LOGENTRY(1, "PythonImplementationExtension::destructor");;           
+                LOGEXIT(1, "PythonImplementationExtension::destructor");
+            }
+
+            const string PythonImplementationExtension::extensionName("python");
+            const string PythonImplementationExtension::typeQName("http://www.osoa.org/xmlns/sca/1.0#PythonImplementation");
+
+            // ===================================================================
+            // loadModelElement - load the info from implementation.python 
+            // ===================================================================
+            ComponentType* PythonImplementationExtension::getImplementation(Composite *composite, DataObjectPtr scdlImplementation)
+            {
+                string implType = scdlImplementation->getType().getName();
+                if (implType == "PythonImplementation")
+                {
+                    string module = scdlImplementation->getCString("module");
+                    string path = scdlImplementation->getCString("path");
+                    string className = scdlImplementation->getCString("class");
+                    string scopeName = scdlImplementation->getCString("scope");
+                    
+                    PythonImplementation::Scope scope;
+                    if (scopeName == "composite")
+                    {
+                        scope = PythonImplementation::COMPOSITE;
+                    }
+                    else
+                    {
+                        scope = PythonImplementation::STATELESS;
+                    }
+
+                    PythonImplementation* pythonImpl = new PythonImplementation(composite, module, path, className, scope);
+                    
+                    return pythonImpl;
+                }
+                else
+                {
+                    return NULL;
+                }
+            }
+
+        } // End namespace python
+    } // End namespace sca
+} // End namespace tuscany

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.h?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.h Tue Oct  3 04:06:12 2006
@@ -1,70 +1,70 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef tuscany_sca_python_pythonimplementationextension_h
-#define tuscany_sca_python_pythonimplementationextension_h
-
-#include "tuscany/sca/extension/ImplementationExtension.h"
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            
-            class PythonImplementationExtension : public ImplementationExtension 
-            {
-            public:
-            /**
-            * Default constructor
-                */
-                PythonImplementationExtension();
-                
-                /**
-                * Destructor
-                */
-                virtual ~PythonImplementationExtension();            
-                
-                /**
-                * return the name of the extension
-                */
-                virtual const string& getExtensionName() {return extensionName;}
-                
-                /**
-                * return the QName of schema elemant for this implementation extension
-                * (e.g. "http://www.osoa.org/xmlns/sca/1.0#implementation.python")
-                */
-                virtual const string& getExtensionTypeQName() {return typeQName;}
-                
-                virtual ComponentType* getImplementation(Composite* composite, DataObjectPtr scdlImplementation);
-                
-            private:
-                static const string extensionName;
-                static const string typeQName;
-                
-            };
-            
-            
-        } // End namespace python       
-    } // End namespace sca
-} // End namespace tuscany
-
-#endif // tuscany_sca_python_pythonimplementationextension_h
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef tuscany_sca_python_pythonimplementationextension_h
+#define tuscany_sca_python_pythonimplementationextension_h
+
+#include "tuscany/sca/extension/ImplementationExtension.h"
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            
+            class PythonImplementationExtension : public ImplementationExtension 
+            {
+            public:
+            /**
+            * Default constructor
+                */
+                PythonImplementationExtension();
+                
+                /**
+                * Destructor
+                */
+                virtual ~PythonImplementationExtension();            
+                
+                /**
+                * return the name of the extension
+                */
+                virtual const string& getExtensionName() {return extensionName;}
+                
+                /**
+                * return the QName of schema elemant for this implementation extension
+                * (e.g. "http://www.osoa.org/xmlns/sca/1.0#implementation.python")
+                */
+                virtual const string& getExtensionTypeQName() {return typeQName;}
+                
+                virtual ComponentType* getImplementation(Composite* composite, DataObjectPtr scdlImplementation);
+                
+            private:
+                static const string extensionName;
+                static const string typeQName;
+                
+            };
+            
+            
+        } // End namespace python       
+    } // End namespace sca
+} // End namespace tuscany
+
+#endif // tuscany_sca_python_pythonimplementationextension_h
+

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonImplementationExtension.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.cpp?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.cpp Tue Oct  3 04:06:12 2006
@@ -1,120 +1,120 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "tuscany/sca/python/PythonInterfaceExtension.h"
-#include "tuscany/sca/python/model/PythonInterface.h"
-#include "tuscany/sca/util/Logging.h"
-
-//#include "commonj/sdo/SDO.h"
-//using commonj::sdo::DataObjectList; 
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            // ===================================================================
-            // Constructor for the PythonInterfaceExtension class. 
-            // ===================================================================
-            PythonInterfaceExtension::PythonInterfaceExtension()
-            { 
-                LOGENTRY(1, "PythonInterfaceExtension::constructor");     
-                LOGEXIT(1, "PythonInterfaceExtension::constructor");
-            }
-            
-            // ===================================================================
-            // Destructor for the PythonInterfaceExtension class.
-            // ===================================================================
-            PythonInterfaceExtension::~PythonInterfaceExtension()
-            { 
-                LOGENTRY(1, "PythonInterfaceExtension::destructor");;           
-                LOGEXIT(1, "PythonInterfaceExtension::destructor");
-            }
-
-            const string PythonInterfaceExtension::extensionName("python");
-            const string PythonInterfaceExtension::typeQName("http://www.osoa.org/xmlns/sca/1.0#PythonInterface");
-
-            // ===================================================================
-            // loadModelElement - load the info from interface.python 
-            // ===================================================================
-            tuscany::sca::model::Interface* PythonInterfaceExtension::getInterface(Composite* composite, DataObjectPtr scdlInterface)
-            {
-                // Determine the type
-                string ifType = scdlInterface->getType().getName();
-                if (ifType == "PythonInterface")
-                {
-                    bool remotable = scdlInterface->getBoolean("remotable");                    
-                    bool conversational = scdlInterface->getBoolean("conversational");                    
-
-                    return new PythonInterface(remotable, conversational);
-                    //DataObjectList& operationList = scdlInterface->getList("operation");
-
-                    //for(int i=0; i<operationList.size(); i++)
-                    //{
-                    //    string opName = operationList[i]->getCString("name");
-
-                    //    if(operationList[i]->hasProperty("returnType"))
-                    //    {
-                    //        string returnType = operationList[i]->getCString("returnType");
-
-                    //        if(returnType == "string")
-                    //        {
-                    //            pythonInterface->addOperation(opName, PythonInterface::STRING);
-                    //        }
-                    //        else if(returnType == "int")
-                    //        {
-                    //            pythonInterface->addOperation(opName, PythonInterface::INT);
-                    //        }
-                    //        else if(returnType == "long")
-                    //        {
-                    //            pythonInterface->addOperation(opName, PythonInterface::LONG);
-                    //        }
-                    //        else if(returnType == "boolean")
-                    //        {
-                    //            pythonInterface->addOperation(opName, PythonInterface::BOOLEAN);
-                    //        }
-                    //        else if(returnType == "float")
-                    //        {
-                    //            pythonInterface->addOperation(opName, PythonInterface::FLOAT);
-                    //        }
-                    //        else if(returnType == "other")
-                    //        {
-                    //            pythonInterface->addOperation(opName, PythonInterface::OTHER);
-                    //        }
-                    //        else
-                    //        {
-                    //            pythonInterface->addOperation(opName, PythonInterface::NONE);
-                    //        }
-                    //    }
-                    //    else
-                    //    {
-                    //        // No return Type provided - set as NONE
-                    //        pythonInterface->addOperation(opName, PythonInterface::NONE);
-                    //    }
-                    //}
-                    //
-                    //return pythonInterface;
-                }
-                return 0;
-            }
-
-        } // End namespace python
-    } // End namespace sca
-} // End namespace tuscany
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "tuscany/sca/python/PythonInterfaceExtension.h"
+#include "tuscany/sca/python/model/PythonInterface.h"
+#include "tuscany/sca/util/Logging.h"
+
+//#include "commonj/sdo/SDO.h"
+//using commonj::sdo::DataObjectList; 
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            // ===================================================================
+            // Constructor for the PythonInterfaceExtension class. 
+            // ===================================================================
+            PythonInterfaceExtension::PythonInterfaceExtension()
+            { 
+                LOGENTRY(1, "PythonInterfaceExtension::constructor");     
+                LOGEXIT(1, "PythonInterfaceExtension::constructor");
+            }
+            
+            // ===================================================================
+            // Destructor for the PythonInterfaceExtension class.
+            // ===================================================================
+            PythonInterfaceExtension::~PythonInterfaceExtension()
+            { 
+                LOGENTRY(1, "PythonInterfaceExtension::destructor");;           
+                LOGEXIT(1, "PythonInterfaceExtension::destructor");
+            }
+
+            const string PythonInterfaceExtension::extensionName("python");
+            const string PythonInterfaceExtension::typeQName("http://www.osoa.org/xmlns/sca/1.0#PythonInterface");
+
+            // ===================================================================
+            // loadModelElement - load the info from interface.python 
+            // ===================================================================
+            tuscany::sca::model::Interface* PythonInterfaceExtension::getInterface(Composite* composite, DataObjectPtr scdlInterface)
+            {
+                // Determine the type
+                string ifType = scdlInterface->getType().getName();
+                if (ifType == "PythonInterface")
+                {
+                    bool remotable = scdlInterface->getBoolean("remotable");                    
+                    bool conversational = scdlInterface->getBoolean("conversational");                    
+
+                    return new PythonInterface(remotable, conversational);
+                    //DataObjectList& operationList = scdlInterface->getList("operation");
+
+                    //for(int i=0; i<operationList.size(); i++)
+                    //{
+                    //    string opName = operationList[i]->getCString("name");
+
+                    //    if(operationList[i]->hasProperty("returnType"))
+                    //    {
+                    //        string returnType = operationList[i]->getCString("returnType");
+
+                    //        if(returnType == "string")
+                    //        {
+                    //            pythonInterface->addOperation(opName, PythonInterface::STRING);
+                    //        }
+                    //        else if(returnType == "int")
+                    //        {
+                    //            pythonInterface->addOperation(opName, PythonInterface::INT);
+                    //        }
+                    //        else if(returnType == "long")
+                    //        {
+                    //            pythonInterface->addOperation(opName, PythonInterface::LONG);
+                    //        }
+                    //        else if(returnType == "boolean")
+                    //        {
+                    //            pythonInterface->addOperation(opName, PythonInterface::BOOLEAN);
+                    //        }
+                    //        else if(returnType == "float")
+                    //        {
+                    //            pythonInterface->addOperation(opName, PythonInterface::FLOAT);
+                    //        }
+                    //        else if(returnType == "other")
+                    //        {
+                    //            pythonInterface->addOperation(opName, PythonInterface::OTHER);
+                    //        }
+                    //        else
+                    //        {
+                    //            pythonInterface->addOperation(opName, PythonInterface::NONE);
+                    //        }
+                    //    }
+                    //    else
+                    //    {
+                    //        // No return Type provided - set as NONE
+                    //        pythonInterface->addOperation(opName, PythonInterface::NONE);
+                    //    }
+                    //}
+                    //
+                    //return pythonInterface;
+                }
+                return 0;
+            }
+
+        } // End namespace python
+    } // End namespace sca
+} // End namespace tuscany

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.h?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.h Tue Oct  3 04:06:12 2006
@@ -1,70 +1,70 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef tuscany_sca_python_pythoninterfaceextension_h
-#define tuscany_sca_python_pythoninterfaceextension_h
-
-#include "tuscany/sca/extension/InterfaceExtension.h"
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            
-            class PythonInterfaceExtension : public InterfaceExtension 
-            {
-            public:
-            /**
-            * Default constructor
-                */
-                PythonInterfaceExtension();            
-                
-                /**
-                * Destructor
-                */
-                virtual ~PythonInterfaceExtension();            
-                
-                /**
-                * return the name of the extension
-                */
-                virtual const string& getExtensionName() {return extensionName;}
-                
-                /**
-                * return the QName of schema elemant for this implementation extension
-                * (e.g. "http://www.osoa.org/xmlns/sca/1.0#PythonInterface")
-                */
-                virtual const string& getExtensionTypeQName() {return typeQName;}
- 
-                virtual tuscany::sca::model::Interface* getInterface(Composite* composite, DataObjectPtr scdlInterface);
-                 
-            private:
-                static const string extensionName;
-                static const string typeQName;
-                
-            };
-            
-            
-        } // End namespace python       
-    } // End namespace sca
-} // End namespace tuscany
-
-#endif // tuscany_sca_python_pythoninterfaceextension_h
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef tuscany_sca_python_pythoninterfaceextension_h
+#define tuscany_sca_python_pythoninterfaceextension_h
+
+#include "tuscany/sca/extension/InterfaceExtension.h"
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            
+            class PythonInterfaceExtension : public InterfaceExtension 
+            {
+            public:
+            /**
+            * Default constructor
+                */
+                PythonInterfaceExtension();            
+                
+                /**
+                * Destructor
+                */
+                virtual ~PythonInterfaceExtension();            
+                
+                /**
+                * return the name of the extension
+                */
+                virtual const string& getExtensionName() {return extensionName;}
+                
+                /**
+                * return the QName of schema elemant for this implementation extension
+                * (e.g. "http://www.osoa.org/xmlns/sca/1.0#PythonInterface")
+                */
+                virtual const string& getExtensionTypeQName() {return typeQName;}
+ 
+                virtual tuscany::sca::model::Interface* getInterface(Composite* composite, DataObjectPtr scdlInterface);
+                 
+            private:
+                static const string extensionName;
+                static const string typeQName;
+                
+            };
+            
+            
+        } // End namespace python       
+    } // End namespace sca
+} // End namespace tuscany
+
+#endif // tuscany_sca_python_pythoninterfaceextension_h
+

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonInterfaceExtension.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.cpp?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.cpp Tue Oct  3 04:06:12 2006
@@ -1,98 +1,98 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "tuscany/sca/python/PythonServiceProxy.h"
-#include "tuscany/sca/util/Logging.h"
-#include "osoa/sca/ServiceRuntimeException.h"
-#include "tuscany/sca/core/SCARuntime.h"
-#include "tuscany/sca/model/Reference.h"
-#include "tuscany/sca/model/ReferenceType.h"
-#include "tuscany/sca/model/Service.h"
-#include "tuscany/sca/model/ServiceType.h"
-#include "tuscany/sca/model/Component.h"
-#include "tuscany/sca/model/ComponentType.h"
-#include "tuscany/sca/core/ServiceWrapper.h"
-#include "tuscany/sca/model/Composite.h"
-#include "tuscany/sca/model/ServiceBinding.h"
-#include "tuscany/sca/python/model/PythonImplementation.h"
-#include "tuscany/sca/python/model/PythonReferenceBinding.h"
-
-using namespace osoa::sca;
-using namespace tuscany::sca::model;
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            
-            // ============================================
-            // Constructor: Create a proxy from a reference
-            // ============================================
-            PythonServiceProxy::PythonServiceProxy(Reference* reference)
-                : ServiceProxy(reference)
-            {
-                LOGENTRY(1,"PythonServiceProxy::constructor(Reference)");
- 
-                // Get the service wrapper
-                PythonReferenceBinding* referenceBinding = (PythonReferenceBinding*)reference->getBinding();                
-                serviceWrapper = referenceBinding->getTargetServiceBinding()->getServiceWrapper();
-    
-                LOGEXIT(1,"PythonServiceProxy::constructor(Reference)");
-            }
-
-            // ==========================================
-            // Constructor: Create a proxy from a service
-            // ==========================================
-            PythonServiceProxy::PythonServiceProxy(Service* service)
-                : ServiceProxy(NULL)
-            {
-                LOGENTRY(1,"PythonServiceProxy::constructor(Service)");
- 
-                // Get the service wrapper
-                serviceWrapper = service->getBinding()->getServiceWrapper();                
-    
-                LOGEXIT(1,"PythonServiceProxy::constructor(Service)");
-            }
-
-            // ==========
-            // Destructor
-            // ==========
-            PythonServiceProxy::~PythonServiceProxy()
-            {
-                LOGENTRY(1,"PythonServiceProxy::destructor");
-                LOGEXIT(1,"PythonServiceProxy::destructor");
-            }
-
-            // =====================================================
-            // invokeService: invoke the service wired to this proxy
-            // =====================================================
-            void PythonServiceProxy::invokeService(Operation& operation)
-            {
-                LOGENTRY(1,"PythonServiceProxy::invokeService");
-
-                // Invoke the service
-                serviceWrapper->invoke(operation);
-
-                LOGEXIT(1,"PythonServiceProxy::invokeService");
-            }
-        } // End namespace python        
-    } // End namespace sca
-} // End namespace tuscany
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "tuscany/sca/python/PythonServiceProxy.h"
+#include "tuscany/sca/util/Logging.h"
+#include "osoa/sca/ServiceRuntimeException.h"
+#include "tuscany/sca/core/SCARuntime.h"
+#include "tuscany/sca/model/Reference.h"
+#include "tuscany/sca/model/ReferenceType.h"
+#include "tuscany/sca/model/Service.h"
+#include "tuscany/sca/model/ServiceType.h"
+#include "tuscany/sca/model/Component.h"
+#include "tuscany/sca/model/ComponentType.h"
+#include "tuscany/sca/core/ServiceWrapper.h"
+#include "tuscany/sca/model/Composite.h"
+#include "tuscany/sca/model/ServiceBinding.h"
+#include "tuscany/sca/python/model/PythonImplementation.h"
+#include "tuscany/sca/python/model/PythonReferenceBinding.h"
+
+using namespace osoa::sca;
+using namespace tuscany::sca::model;
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            
+            // ============================================
+            // Constructor: Create a proxy from a reference
+            // ============================================
+            PythonServiceProxy::PythonServiceProxy(Reference* reference)
+                : ServiceProxy(reference)
+            {
+                LOGENTRY(1,"PythonServiceProxy::constructor(Reference)");
+ 
+                // Get the service wrapper
+                PythonReferenceBinding* referenceBinding = (PythonReferenceBinding*)reference->getBinding();                
+                serviceWrapper = referenceBinding->getTargetServiceBinding()->getServiceWrapper();
+    
+                LOGEXIT(1,"PythonServiceProxy::constructor(Reference)");
+            }
+
+            // ==========================================
+            // Constructor: Create a proxy from a service
+            // ==========================================
+            PythonServiceProxy::PythonServiceProxy(Service* service)
+                : ServiceProxy(NULL)
+            {
+                LOGENTRY(1,"PythonServiceProxy::constructor(Service)");
+ 
+                // Get the service wrapper
+                serviceWrapper = service->getBinding()->getServiceWrapper();                
+    
+                LOGEXIT(1,"PythonServiceProxy::constructor(Service)");
+            }
+
+            // ==========
+            // Destructor
+            // ==========
+            PythonServiceProxy::~PythonServiceProxy()
+            {
+                LOGENTRY(1,"PythonServiceProxy::destructor");
+                LOGEXIT(1,"PythonServiceProxy::destructor");
+            }
+
+            // =====================================================
+            // invokeService: invoke the service wired to this proxy
+            // =====================================================
+            void PythonServiceProxy::invokeService(Operation& operation)
+            {
+                LOGENTRY(1,"PythonServiceProxy::invokeService");
+
+                // Invoke the service
+                serviceWrapper->invoke(operation);
+
+                LOGEXIT(1,"PythonServiceProxy::invokeService");
+            }
+        } // End namespace python        
+    } // End namespace sca
+} // End namespace tuscany

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.cpp
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.h?view=diff&rev=452416&r1=452415&r2=452416
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.h Tue Oct  3 04:06:12 2006
@@ -1,84 +1,84 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- *   
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef tuscany_sca_python_pythonserviceproxy_h
-#define tuscany_sca_python_pythonserviceproxy_h
-
-#include "tuscany/sca/core/ServiceProxy.h" 
-#include "tuscany/sca/core/ServiceWrapper.h" 
-#include "tuscany/sca/util/Library.h"
-#include "tuscany/sca/model/Component.h"
-#include "tuscany/sca/model/Reference.h"
-#include "tuscany/sca/model/Service.h"
-
-#include "export.h" 
-
-using namespace tuscany::sca::model;
-
-
-namespace tuscany
-{
-    namespace sca
-    {
-        namespace python
-        {
-            
-            /**
-             * Holds a proxy for a given reference from a component implemented in Python.
-             */
-            class PythonServiceProxy : public ServiceProxy
-            {
-            public:
-                /**
-                 * Create a new service proxy for a reference. The proxy will contain a pointer to
-                 * the target ServiceWrapper.
-                 * @param reference The reference on the source component.
-                 */
-                PythonServiceProxy(Reference* reference);
-       
-               /**
-                 * Create a new service proxy for a service. The proxy will contain a pointer to
-                 * the target ServiceWrapper.
-                 * @param service The service on the target component.
-                 */
-                SCA_PYTHON_API PythonServiceProxy(Service* service);
-       
-                /**
-                 * Destructor.
-                 */
-                virtual ~PythonServiceProxy();
-    
-                /**
-                 * Invoke the wired service.
-                 */
-                virtual void invokeService(Operation& operation);
-    
-            private:
-    
-                /**
-                 * The target service wrapper
-                 */
-                ServiceWrapper* serviceWrapper;    
-            };
-            
-        } // End namespace python
-    } // End namespace sca
-} // End namespace tuscany
-
-#endif // tuscany_sca_python_pythonserviceproxy_h
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *   
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#ifndef tuscany_sca_python_pythonserviceproxy_h
+#define tuscany_sca_python_pythonserviceproxy_h
+
+#include "tuscany/sca/core/ServiceProxy.h" 
+#include "tuscany/sca/core/ServiceWrapper.h" 
+#include "tuscany/sca/util/Library.h"
+#include "tuscany/sca/model/Component.h"
+#include "tuscany/sca/model/Reference.h"
+#include "tuscany/sca/model/Service.h"
+
+#include "export.h" 
+
+using namespace tuscany::sca::model;
+
+
+namespace tuscany
+{
+    namespace sca
+    {
+        namespace python
+        {
+            
+            /**
+             * Holds a proxy for a given reference from a component implemented in Python.
+             */
+            class PythonServiceProxy : public ServiceProxy
+            {
+            public:
+                /**
+                 * Create a new service proxy for a reference. The proxy will contain a pointer to
+                 * the target ServiceWrapper.
+                 * @param reference The reference on the source component.
+                 */
+                PythonServiceProxy(Reference* reference);
+       
+               /**
+                 * Create a new service proxy for a service. The proxy will contain a pointer to
+                 * the target ServiceWrapper.
+                 * @param service The service on the target component.
+                 */
+                SCA_PYTHON_API PythonServiceProxy(Service* service);
+       
+                /**
+                 * Destructor.
+                 */
+                virtual ~PythonServiceProxy();
+    
+                /**
+                 * Invoke the wired service.
+                 */
+                virtual void invokeService(Operation& operation);
+    
+            private:
+    
+                /**
+                 * The target service wrapper
+                 */
+                ServiceWrapper* serviceWrapper;    
+            };
+            
+        } // End namespace python
+    } // End namespace sca
+} // End namespace tuscany
+
+#endif // tuscany_sca_python_pythonserviceproxy_h

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceProxy.h
------------------------------------------------------------------------------
    svn:keywords = Rev Date



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