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/01/05 11:59:14 UTC
svn commit: r366157 [4/33] - in /incubator/tuscany/cpp/sca: ./ bin/ include/
include/osoa/ include/osoa/sca/ include/tuscany/ include/tuscany/sca/
include/tuscany/sca/core/ include/tuscany/sca/model/
include/tuscany/sca/util/ include/tuscany/sca/ws/ li...
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/sources.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/sources.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/sources.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/sources.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,20 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+C_UPPER_SRCS :=
+CPP_SRCS :=
+O_SRCS :=
+ASM_SRCS :=
+S_SRCS :=
+CXX_SRCS :=
+CC_SRCS :=
+OBJ_SRCS :=
+OBJS :=
+DEPS :=
+LIBRARIES :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+. \
+
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Debug/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,29 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/SCAWSWrapper.cpp
+
+OBJS += \
+./SCAWSWrapper.o
+
+DEPS += \
+${addprefix ./, \
+SCAWSWrapper.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+%.o: $(ROOT)/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/makefile
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/makefile?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/makefile (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/makefile Thu Jan 5 02:54:16 2006
@@ -0,0 +1,43 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+ROOT := ..
+
+-include $(ROOT)/makefile.init
+
+RM := rm -rf
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include $(SUBDIRS:%=%/subdir.mk)
+-include objects.mk
+ifneq ($(strip $(DEPS)),)
+-include $(DEPS)
+endif
+
+-include $(ROOT)/makefile.defs
+
+# Add inputs and outputs from these tool invocations to the build variables
+
+# All Target
+all: libtuscany_sca_axis_wrapper.so
+
+# Tool invocations
+libtuscany_sca_axis_wrapper.so: $(OBJS) $(USER_OBJS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: GCC C++ Linker'
+ @echo g++ -shared -olibtuscany_sca_axis_wrapper.so $(OBJS) $(USER_OBJS) $(LIBS)
+ @g++ -shared -olibtuscany_sca_axis_wrapper.so $(OBJS) $(USER_OBJS) $(LIBS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+# Other Targets
+clean:
+ -$(RM) $(OBJS)$(DEPS)$(LIBRARIES) libtuscany_sca_axis_wrapper.so
+ -@echo ' '
+
+.PHONY: all clean dependents
+.SECONDARY:
+
+-include $(ROOT)/makefile.targets
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/objects.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/objects.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/objects.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/objects.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,7 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+LIBS :=
+
+USER_OBJS :=
\ No newline at end of file
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/sources.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/sources.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/sources.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/sources.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,20 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+C_UPPER_SRCS :=
+CPP_SRCS :=
+O_SRCS :=
+ASM_SRCS :=
+S_SRCS :=
+CXX_SRCS :=
+CC_SRCS :=
+OBJ_SRCS :=
+OBJS :=
+DEPS :=
+LIBRARIES :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+. \
+
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/Release/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,29 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/SCAWSWrapper.cpp
+
+OBJS += \
+./SCAWSWrapper.o
+
+DEPS += \
+${addprefix ./, \
+SCAWSWrapper.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+%.o: $(ROOT)/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.cpp
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.cpp?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.cpp (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.cpp Thu Jan 5 02:54:16 2006
@@ -0,0 +1,254 @@
+/*
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+/* $Rev$ $Date: 2005/12/22 11:33:21 $ */
+
+#include "SCAWSWrapper.h"
+
+#include "commonj/sdo/SDO.h"
+#include "tuscany/sca/util/Exceptions.h"
+#include "tuscany/sca/core/SCAEntryPoint.h"
+
+
+using namespace std;
+using namespace commonj::sdo;
+using namespace tuscany::sca;
+AXIS_CPP_NAMESPACE_USE;
+
+/** Construct an SCAWSWrapper.
+ */
+SCAWSWrapper::SCAWSWrapper()
+{
+}
+
+/** Destruct an SCAWSWrapper.
+ */
+SCAWSWrapper::~SCAWSWrapper()
+{
+}
+
+
+//
+// Implementation of WrapperClassHandler interface
+//
+
+/** Perform any necessary initialization.
+ */
+int SCAWSWrapper::init()
+{
+ return AXIS_SUCCESS;
+}
+
+/** Perform an necessary finalization.
+ */
+int SCAWSWrapper::fini()
+{
+ return AXIS_SUCCESS;
+}
+
+/** Invoke a web service operation. The invoke method expects SCA specific
+ * properties to have been set into the MessageData by the SCAWSHandler.
+ * Using those properties, the wrapper will invoke the correct SCA Entry
+ * Point.
+ * @param pMsg - pointer to IMessageData.
+ *
+ * @see SCAWSHandler
+ */
+int SCAWSWrapper::invoke(void *pMsg)
+{
+
+ IMessageData *pIMsg = (IMessageData*)pMsg;
+ const AxisChar *operationName = pIMsg->getOperationName();
+
+ int axisReturn = invokeService(pIMsg, operationName);
+ return axisReturn;
+}
+
+/** Handle Faults.
+ */
+void SCAWSWrapper::onFault(void *pMsg)
+{
+}
+
+
+// Invoke an operation on an SCA Entry Point.
+int SCAWSWrapper::invokeService(IMessageData *pIMsg,
+ const AxisChar *operationName)
+{
+ int axisReturn = AXIS_SUCCESS;
+
+ // Get the SoapSerializer.
+ IWrapperSoapSerializer* pIWSSZ;
+ pIMsg->getSoapSerializer(&pIWSSZ);
+ if (!pIWSSZ)
+ {
+ return AXIS_FAIL;
+ }
+
+ // Get the SoapDeSerializer.
+ IWrapperSoapDeSerializer* pIWSDZ;
+ pIMsg->getSoapDeSerializer(&pIWSDZ);
+ if (!pIWSDZ)
+ {
+ return AXIS_FAIL;
+ }
+
+ // Target Namespace was set into the MessageData by the SCAWSHandler.
+ const AxisChar *targetNamespace = (const AxisChar *)pIMsg->getProperty("targetNamespace");
+
+ // Make sure we have the correct message.
+ if (AXIS_SUCCESS != pIWSDZ->checkMessageBody(operationName, targetNamespace))
+ {
+ return AXIS_FAIL;
+ }
+
+ try
+ {
+ //
+ // Create the SCA EntryPoint
+ //
+ const AxisChar *scaEntryPointName = (const AxisChar *)pIMsg->getProperty("scaEntryPoint");
+ SCAEntryPoint entrypoint(scaEntryPointName);
+
+ // Get the DataFactory which has Types loaded from WSDLs
+ DataFactoryPtr dataFactory = entrypoint.getDataFactory();
+
+ //
+ // Get the Soap body and create an SDO request object from it.
+ //
+ AnyType *soapAny = pIWSDZ->getAnyObject();
+
+ // The Doc Literal soap message does not include the root element (operation name) when
+ // we use getAnyObject. Axis calls this element the 'soap method' but there is no
+ // 'getSoapMethod' method on the deserializer - we need to wrap the soap body with an
+ // element named for the operation name.
+
+ string soapBody("<");
+ soapBody.append(operationName);
+ soapBody.append(" ");
+ soapBody.append("xmlns");
+ soapBody.append("=\"");
+ soapBody.append(targetNamespace);
+ soapBody.append("\">");
+ for (int i=0; i < soapAny->_size ; i++)
+ {
+ // The soap body is stored in the _array member of AnyType.
+ soapBody.append(soapAny->_array[i]);
+ }
+ soapBody.append("</");
+ soapBody.append(operationName);
+ soapBody.append(">");
+
+ //
+ // Create the SDO request object from the soap body.
+ //
+ XMLHelperPtr xmlHelper = HelperProvider::getXMLHelper(dataFactory);
+ XMLDocumentPtr xmlDoc = xmlHelper->load(soapBody.c_str(), targetNamespace);
+ DataObjectPtr requestSDO = xmlDoc->getRootDataObject();
+
+ //
+ // Invoke the operation on the SCA EntryPoint.
+ //
+ DataObjectPtr responseSDO = entrypoint.invoke(operationName, requestSDO);
+
+ //
+ // Serialize the responseSDO into a SOAP response.
+ //
+ // Get the name of the response SDO. The entry point was invoked using an
+ // SDOStub and the stub makes sure that the response includes the root
+ // element (operation response name).
+
+ const Type &responseType = responseSDO->getType();
+ const char *operationResponseName = responseType.getName();
+
+ // Get the first child of the root element - this is the soap body
+ // to return in the response. The body will be wrapped with the root
+ // element (operation response name) when we call the Axis method
+ // 'createSoapmMethod'.
+ DataObjectPtr soapBodySDO = responseSDO->getDataObject((unsigned int)0);
+ const Type& soapBodyType = soapBodySDO->getType();
+ const char *soapBodyName = soapBodyType.getName();
+ // Convert the soap body DataObject into XML.
+ XMLDocumentPtr responseDoc = xmlHelper->createDocument(soapBodySDO,
+ targetNamespace,
+ soapBodyName);
+ responseDoc->setXMLDeclaration(false);
+ char *responseXML = xmlHelper->save(responseDoc);
+
+ //
+ // Serialize the response
+ //
+ // Wrap the soap body with the root element (operation response name).
+ pIWSSZ->createSoapMethod(operationResponseName, targetNamespace);
+ // Add the XML response document (soap body) as an AnyType.
+ AnyType *soapAnyResponse = new AnyType();
+ soapAnyResponse->_size = 1;
+ soapAnyResponse->_array = new char*[1];
+ soapAnyResponse->_array[0] = strdup(responseXML);
+
+ pIWSSZ->addOutputAnyObject(soapAnyResponse);
+
+ }
+ catch(ServiceRuntimeException e)
+ {
+ axisReturn = AXIS_FAIL;
+ }
+ catch(SDORuntimeException e)
+ {
+ axisReturn = AXIS_FAIL;
+ }
+
+
+ return axisReturn;
+}
+
+//
+// These functions are exported from the SCAWSWrapper DLL and are called by the Axis Engine
+// to create/destroy instances of the service wrapper class.
+//
+extern "C"
+{
+STORAGE_CLASS_INFO
+int GetClassInstance(BasicHandler **inst)
+{
+ *inst = new BasicHandler();
+ WrapperClassHandler* pWCH = new SCAWSWrapper();
+ (*inst)->_functions = 0;
+ if (pWCH)
+ {
+ (*inst)->_object = pWCH;
+ return pWCH->init();
+ }
+ return AXIS_FAIL;
+}
+STORAGE_CLASS_INFO
+int DestroyInstance(BasicHandler *inst)
+{
+ if (inst)
+ {
+ WrapperClassHandler* pWCH = reinterpret_cast<WrapperClassHandler*>(inst);
+ pWCH->fini();
+ delete pWCH;
+ delete inst;
+ return AXIS_SUCCESS;
+ }
+ return AXIS_FAIL;
+}
+} // extern "C"
+
+
+
Propchange: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.cpp
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.h
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.h?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.h (added)
+++ incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.h Thu Jan 5 02:54:16 2006
@@ -0,0 +1,110 @@
+/*
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+/* $Rev$ $Date: 2005/12/22 11:33:21 $ */
+
+#if !defined(SCAWSWRAPPER_H_INCLUDED)
+#define SCAWSWRAPPER_H_INCLUDED
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "osoa/sca/export.h"
+#include <axis/server/WrapperClassHandler.hpp>
+#include <axis/IMessageData.hpp>
+#include <axis/GDefine.hpp>
+#include <axis/AxisWrapperAPI.hpp>
+#include <axis/AxisUserAPI.hpp>
+
+
+AXIS_CPP_NAMESPACE_USE
+
+/** The SCAWSWrapper class is an Axis WrapperClassHandler that acts as a generic service wrapper for
+ * invoking services using the SCARuntime. Any services defined in the deployment descriptor (server.wsdd)
+ * with <parameter name="className" value="<path>\SCAWSWrapper.dll"/> will be invoked by the SCAWSWrapper.
+ * The service must also be configured with a handler (SCAWSHandler) that sets SCA specific properties
+ * from the deployment descriptor into the MessageData that is passed to the wrapper's invoke method.
+ * The SCAWSWrapper uses the properties to configure an SCA Entry Point and invoke the requested operation
+ * on the service.
+ *
+ * Example:
+ *
+ * <service name="ExampleService" provider="CPP:DOCUMENT" description="Example Service">
+ * <requestFlow>
+ * <handler name="SCAWSHandler" type="C:\Apache2.0.54\Apache2\Axis\handlers\SCAWSHandler.dll">
+ * <parameter name="targetNamespace" value="http://com.exampleservice"/>
+ * <parameter name="scaEntryPoint" value="SubSystem1/ExampleService/ExampleService"/>
+ * </handler>
+ * </requestFlow>
+ *
+ * <parameter name="className" value="C:\Apache2.0.54\Apache2\Axis\webservices\SCAWSWrapper.dll"/>
+ * <parameter name="allowedMethods" value="ExampleMethod "/>
+ * </service>
+ *
+ * @see SCAWSHandler
+ */
+class SCAWSWrapper : public WrapperClassHandler
+{
+ public:
+
+ /** Construct an SCAWSWrapper.
+ */
+ SCAWSWrapper();
+
+ /** Destruct an SCAWSWrapper.
+ */
+ virtual ~SCAWSWrapper();
+
+ //
+ // Axis WrapperClassHandler interface.
+ //
+
+ /** Perform any necessary initialization.
+ */
+ int AXISCALL init();
+
+ /** Perform any necessary finalization.
+ */
+ int AXISCALL fini();
+
+ /** Invoke a web service operation. The invoke method expects SCA specific
+ * properties to have been set into the MessageData by the SCAWSHandler.
+ * Using those properties, the wrapper will invoke the correct SCA Entry
+ * Point.
+ * @param pMsg - pointer to IMessageData.
+ *
+ * @see SCAWSHandler
+ */
+ int AXISCALL invoke(void* pMsg);
+
+ /** Handle Faults.
+ */
+ void AXISCALL onFault(void* pMsg);
+
+ /** Binding Style: Document Literal.
+ */
+ AXIS_BINDING_STYLE AXISCALL getBindingStyle() { return DOC_LITERAL; };
+
+ private:
+
+ // Invoke an SCA Entry Point and return an SDO object as a result.
+ int invokeService(IMessageData *pIMsg,
+ const AxisChar *operationName);
+};
+
+#endif // !defined(SCAWSWRAPPER_H_INCLUDED)
Propchange: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/runtime/axis_binding/wrapper/src/SCAWSWrapper.h
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/cpp/sca/runtime/core/src/.cdtbuild
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/.cdtbuild?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/.cdtbuild (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/.cdtbuild Thu Jan 5 02:54:16 2006
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?fileVersion 3.0.0?>
+
+<ManagedProjectBuildInfo>
+<project id="tuscany_sca.cdt.managedbuild.target.gnu.so.396678379" name="Shared Library (Gnu)" projectType="cdt.managedbuild.target.gnu.so">
+<configuration artifactExtension="so" artifactName="tuscany_sca" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="cdt.managedbuild.config.gnu.so.debug.1559343291" name="Debug" parent="cdt.managedbuild.config.gnu.so.debug">
+<toolChain id="cdt.managedbuild.toolchain.gnu.so.debug.609825338" name="GCC Tool Chain" superClass="cdt.managedbuild.toolchain.gnu.so.debug">
+<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.compiler.so.debug.77943252" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.so.debug"/>
+<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.compiler.so.debug.1766408370" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.so.debug">
+<option id="gnu.cpp.compiler.option.preprocessor.def.2024197080" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
+<listOptionValue builtIn="false" value="_DEBUG"/>
+</option>
+<option id="gnu.cpp.compiler.option.include.paths.1737038239" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
+<listOptionValue builtIn="false" value="${SCA4CPP_HOME}/runtime/core/src"/>
+<listOptionValue builtIn="false" value="${SDO4CPP}/include"/>
+<listOptionValue builtIn="false" value="${AXISCPP_DEPLOY}/include"/>
+</option>
+</tool>
+<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.linker.so.debug.716034031" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.so.debug"/>
+<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.linker.so.debug.10617576" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.so.debug"/>
+<tool command="as" id="cdt.managedbuild.tool.gnu.assembler.so.debug.12565873" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.so.debug"/>
+<macros/>
+</toolChain>
+</configuration>
+<configuration artifactExtension="so" artifactName="tuscany_sca" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="cdt.managedbuild.config.gnu.so.release.1621584437" name="Release" parent="cdt.managedbuild.config.gnu.so.release">
+<toolChain id="cdt.managedbuild.toolchain.gnu.so.release.848211885" name="GCC Tool Chain" superClass="cdt.managedbuild.toolchain.gnu.so.release">
+<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.compiler.so.release.1423119436" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.so.release"/>
+<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.compiler.so.release.1296381577" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.so.release">
+<option id="gnu.cpp.compiler.option.include.paths.366400225" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
+<listOptionValue builtIn="false" value="${SCA4CPP_HOME}/runtime/core/src"/>
+<listOptionValue builtIn="false" value="${SDO4CPP}/include"/>
+<listOptionValue builtIn="false" value="${AXISCPP_DEPLOY}/include"/>
+</option>
+</tool>
+<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.linker.so.release.1135017546" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.so.release"/>
+<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.linker.so.release.468695598" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.so.release"/>
+<tool command="as" id="cdt.managedbuild.tool.gnu.assembler.so.release.153520855" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.so.release"/>
+<macros/>
+</toolChain>
+</configuration>
+<macros/>
+</project>
+</ManagedProjectBuildInfo>
Added: incubator/tuscany/cpp/sca/runtime/core/src/.cdtproject
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/.cdtproject?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/.cdtproject (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/.cdtproject Thu Jan 5 02:54:16 2006
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse-cdt version="2.0"?>
+
+<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
+<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.domsourceindexer" point="org.eclipse.cdt.core.CIndexer"/>
+<data>
+<item id="org.eclipse.cdt.core.pathentry">
+<pathentry kind="src" path=""/>
+<pathentry kind="out" path=""/>
+<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
+</item>
+</data>
+</cdtproject>
Added: incubator/tuscany/cpp/sca/runtime/core/src/.project
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/.project?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/.project (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/.project Thu Jan 5 02:54:16 2006
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>tuscany_sca</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ </natures>
+</projectDescription>
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/.project
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/tuscany/cpp/sca/runtime/core/src/.settings/org.eclipse.cdt.managedbuilder.core.prefs
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/.settings/org.eclipse.cdt.managedbuilder.core.prefs?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/.settings/org.eclipse.cdt.managedbuilder.core.prefs (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/.settings/org.eclipse.cdt.managedbuilder.core.prefs Thu Jan 5 02:54:16 2006
@@ -0,0 +1,9 @@
+#Fri Nov 25 11:02:21 GMT 2005
+eclipse.preferences.version=1
+environment/buildEnvironmentInclude/cdt.managedbuild.config.gnu.so.debug.1559343291=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="CPATH" operation\="remove"/>\n<variable name\="CPLUS_INCLUDE_PATH" operation\="remove"/>\n</environment>\n
+environment/buildEnvironmentInclude/cdt.managedbuild.config.gnu.so.release.1621584437=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="CPATH" operation\="remove"/>\n<variable name\="CPLUS_INCLUDE_PATH" operation\="remove"/>\n</environment>\n
+environment/buildEnvironmentLibrary/cdt.managedbuild.config.gnu.so.debug.1559343291=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="LIBRARY_PATH" operation\="remove"/>\n</environment>\n
+environment/buildEnvironmentLibrary/cdt.managedbuild.config.gnu.so.release.1621584437=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="LIBRARY_PATH" operation\="remove"/>\n</environment>\n
+environment/project=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment/>\n
+environment/project/cdt.managedbuild.config.gnu.so.debug.1559343291=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment/>\n
+environment/project/cdt.managedbuild.config.gnu.so.release.1621584437=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment/>\n
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/makefile
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/makefile?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/makefile (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/makefile Thu Jan 5 02:54:16 2006
@@ -0,0 +1,43 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+ROOT := ..
+
+-include $(ROOT)/makefile.init
+
+RM := rm -rf
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include $(SUBDIRS:%=%/subdir.mk)
+-include objects.mk
+ifneq ($(strip $(DEPS)),)
+-include $(DEPS)
+endif
+
+-include $(ROOT)/makefile.defs
+
+# Add inputs and outputs from these tool invocations to the build variables
+
+# All Target
+all: libtuscany_sca.so
+
+# Tool invocations
+libtuscany_sca.so: $(OBJS) $(USER_OBJS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: GCC C++ Linker'
+ @echo g++ -shared -olibtuscany_sca.so $(OBJS) $(USER_OBJS) $(LIBS)
+ @g++ -shared -olibtuscany_sca.so $(OBJS) $(USER_OBJS) $(LIBS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+# Other Targets
+clean:
+ -$(RM) $(OBJS)$(DEPS)$(LIBRARIES) libtuscany_sca.so
+ -@echo ' '
+
+.PHONY: all clean dependents
+.SECONDARY:
+
+-include $(ROOT)/makefile.targets
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/objects.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/objects.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/objects.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/objects.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,7 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+LIBS :=
+
+USER_OBJS :=
\ No newline at end of file
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/osoa/sca/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/osoa/sca/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/osoa/sca/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/osoa/sca/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,47 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/osoa/sca/ComponentContext.cpp \
+$(ROOT)/osoa/sca/ComponentContextImpl.cpp \
+$(ROOT)/osoa/sca/ModuleContext.cpp \
+$(ROOT)/osoa/sca/ModuleContextImpl.cpp \
+$(ROOT)/osoa/sca/SCA.cpp \
+$(ROOT)/osoa/sca/ServiceList.cpp \
+$(ROOT)/osoa/sca/ServiceRuntimeException.cpp
+
+OBJS += \
+./osoa/sca/ComponentContext.o \
+./osoa/sca/ComponentContextImpl.o \
+./osoa/sca/ModuleContext.o \
+./osoa/sca/ModuleContextImpl.o \
+./osoa/sca/SCA.o \
+./osoa/sca/ServiceList.o \
+./osoa/sca/ServiceRuntimeException.o
+
+DEPS += \
+${addprefix ./osoa/sca/, \
+ComponentContext.d \
+ComponentContextImpl.d \
+ModuleContext.d \
+ModuleContextImpl.d \
+SCA.d \
+ServiceList.d \
+ServiceRuntimeException.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+osoa/sca/%.o: $(ROOT)/osoa/sca/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/sources.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/sources.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/sources.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/sources.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,24 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+C_UPPER_SRCS :=
+CPP_SRCS :=
+O_SRCS :=
+ASM_SRCS :=
+S_SRCS :=
+CXX_SRCS :=
+CC_SRCS :=
+OBJ_SRCS :=
+OBJS :=
+DEPS :=
+LIBRARIES :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+tuscany/sca/ws \
+tuscany/sca/util \
+tuscany/sca/model \
+tuscany/sca/core \
+osoa/sca \
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/core/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/core/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/core/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/core/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,47 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/core/ComponentServiceWrapper.cpp \
+$(ROOT)/tuscany/sca/core/ExternalServiceWrapper.cpp \
+$(ROOT)/tuscany/sca/core/Operation.cpp \
+$(ROOT)/tuscany/sca/core/SCAEntryPoint.cpp \
+$(ROOT)/tuscany/sca/core/SCARuntime.cpp \
+$(ROOT)/tuscany/sca/core/ServiceProxy.cpp \
+$(ROOT)/tuscany/sca/core/ServiceWrapper.cpp
+
+OBJS += \
+./tuscany/sca/core/ComponentServiceWrapper.o \
+./tuscany/sca/core/ExternalServiceWrapper.o \
+./tuscany/sca/core/Operation.o \
+./tuscany/sca/core/SCAEntryPoint.o \
+./tuscany/sca/core/SCARuntime.o \
+./tuscany/sca/core/ServiceProxy.o \
+./tuscany/sca/core/ServiceWrapper.o
+
+DEPS += \
+${addprefix ./tuscany/sca/core/, \
+ComponentServiceWrapper.d \
+ExternalServiceWrapper.d \
+Operation.d \
+SCAEntryPoint.d \
+SCARuntime.d \
+ServiceProxy.d \
+ServiceWrapper.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/core/%.o: $(ROOT)/tuscany/sca/core/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/model/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/model/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/model/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/model/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,83 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/model/Binding.cpp \
+$(ROOT)/tuscany/sca/model/CPPImplementation.cpp \
+$(ROOT)/tuscany/sca/model/CPPInterface.cpp \
+$(ROOT)/tuscany/sca/model/Component.cpp \
+$(ROOT)/tuscany/sca/model/EntryPoint.cpp \
+$(ROOT)/tuscany/sca/model/ExternalService.cpp \
+$(ROOT)/tuscany/sca/model/Implementation.cpp \
+$(ROOT)/tuscany/sca/model/Interface.cpp \
+$(ROOT)/tuscany/sca/model/ModelLoader.cpp \
+$(ROOT)/tuscany/sca/model/Module.cpp \
+$(ROOT)/tuscany/sca/model/Service.cpp \
+$(ROOT)/tuscany/sca/model/ServiceReference.cpp \
+$(ROOT)/tuscany/sca/model/Subsystem.cpp \
+$(ROOT)/tuscany/sca/model/System.cpp \
+$(ROOT)/tuscany/sca/model/WSBinding.cpp \
+$(ROOT)/tuscany/sca/model/Wire.cpp \
+$(ROOT)/tuscany/sca/model/WireTarget.cpp \
+$(ROOT)/tuscany/sca/model/Wsdl.cpp \
+$(ROOT)/tuscany/sca/model/WsdlOperation.cpp
+
+OBJS += \
+./tuscany/sca/model/Binding.o \
+./tuscany/sca/model/CPPImplementation.o \
+./tuscany/sca/model/CPPInterface.o \
+./tuscany/sca/model/Component.o \
+./tuscany/sca/model/EntryPoint.o \
+./tuscany/sca/model/ExternalService.o \
+./tuscany/sca/model/Implementation.o \
+./tuscany/sca/model/Interface.o \
+./tuscany/sca/model/ModelLoader.o \
+./tuscany/sca/model/Module.o \
+./tuscany/sca/model/Service.o \
+./tuscany/sca/model/ServiceReference.o \
+./tuscany/sca/model/Subsystem.o \
+./tuscany/sca/model/System.o \
+./tuscany/sca/model/WSBinding.o \
+./tuscany/sca/model/Wire.o \
+./tuscany/sca/model/WireTarget.o \
+./tuscany/sca/model/Wsdl.o \
+./tuscany/sca/model/WsdlOperation.o
+
+DEPS += \
+${addprefix ./tuscany/sca/model/, \
+Binding.d \
+CPPImplementation.d \
+CPPInterface.d \
+Component.d \
+EntryPoint.d \
+ExternalService.d \
+Implementation.d \
+Interface.d \
+ModelLoader.d \
+Module.d \
+Service.d \
+ServiceReference.d \
+Subsystem.d \
+System.d \
+WSBinding.d \
+Wire.d \
+WireTarget.d \
+Wsdl.d \
+WsdlOperation.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/model/%.o: $(ROOT)/tuscany/sca/model/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/util/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/util/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/util/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/util/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,44 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/util/DefaultLogWriter.cpp \
+$(ROOT)/tuscany/sca/util/File.cpp \
+$(ROOT)/tuscany/sca/util/Library.cpp \
+$(ROOT)/tuscany/sca/util/LogWriter.cpp \
+$(ROOT)/tuscany/sca/util/Logger.cpp \
+$(ROOT)/tuscany/sca/util/Utils.cpp
+
+OBJS += \
+./tuscany/sca/util/DefaultLogWriter.o \
+./tuscany/sca/util/File.o \
+./tuscany/sca/util/Library.o \
+./tuscany/sca/util/LogWriter.o \
+./tuscany/sca/util/Logger.o \
+./tuscany/sca/util/Utils.o
+
+DEPS += \
+${addprefix ./tuscany/sca/util/, \
+DefaultLogWriter.d \
+File.d \
+Library.d \
+LogWriter.d \
+Logger.d \
+Utils.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/util/%.o: $(ROOT)/tuscany/sca/util/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/ws/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/ws/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/ws/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Debug/tuscany/sca/ws/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,32 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/ws/SDOStub.cpp \
+$(ROOT)/tuscany/sca/ws/WSServiceWrapper.cpp
+
+OBJS += \
+./tuscany/sca/ws/SDOStub.o \
+./tuscany/sca/ws/WSServiceWrapper.o
+
+DEPS += \
+${addprefix ./tuscany/sca/ws/, \
+SDOStub.d \
+WSServiceWrapper.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/ws/%.o: $(ROOT)/tuscany/sca/ws/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/makefile
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/makefile?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/makefile (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/makefile Thu Jan 5 02:54:16 2006
@@ -0,0 +1,43 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+ROOT := ..
+
+-include $(ROOT)/makefile.init
+
+RM := rm -rf
+
+# All of the sources participating in the build are defined here
+-include sources.mk
+-include $(SUBDIRS:%=%/subdir.mk)
+-include objects.mk
+ifneq ($(strip $(DEPS)),)
+-include $(DEPS)
+endif
+
+-include $(ROOT)/makefile.defs
+
+# Add inputs and outputs from these tool invocations to the build variables
+
+# All Target
+all: libtuscany_sca.so
+
+# Tool invocations
+libtuscany_sca.so: $(OBJS) $(USER_OBJS)
+ @echo 'Building target: $@'
+ @echo 'Invoking: GCC C++ Linker'
+ @echo g++ -shared -olibtuscany_sca.so $(OBJS) $(USER_OBJS) $(LIBS)
+ @g++ -shared -olibtuscany_sca.so $(OBJS) $(USER_OBJS) $(LIBS)
+ @echo 'Finished building target: $@'
+ @echo ' '
+
+# Other Targets
+clean:
+ -$(RM) $(OBJS)$(DEPS)$(LIBRARIES) libtuscany_sca.so
+ -@echo ' '
+
+.PHONY: all clean dependents
+.SECONDARY:
+
+-include $(ROOT)/makefile.targets
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/objects.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/objects.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/objects.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/objects.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,7 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+LIBS :=
+
+USER_OBJS :=
\ No newline at end of file
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/osoa/sca/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/osoa/sca/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/osoa/sca/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/osoa/sca/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,47 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/osoa/sca/ComponentContext.cpp \
+$(ROOT)/osoa/sca/ComponentContextImpl.cpp \
+$(ROOT)/osoa/sca/ModuleContext.cpp \
+$(ROOT)/osoa/sca/ModuleContextImpl.cpp \
+$(ROOT)/osoa/sca/SCA.cpp \
+$(ROOT)/osoa/sca/ServiceList.cpp \
+$(ROOT)/osoa/sca/ServiceRuntimeException.cpp
+
+OBJS += \
+./osoa/sca/ComponentContext.o \
+./osoa/sca/ComponentContextImpl.o \
+./osoa/sca/ModuleContext.o \
+./osoa/sca/ModuleContextImpl.o \
+./osoa/sca/SCA.o \
+./osoa/sca/ServiceList.o \
+./osoa/sca/ServiceRuntimeException.o
+
+DEPS += \
+${addprefix ./osoa/sca/, \
+ComponentContext.d \
+ComponentContextImpl.d \
+ModuleContext.d \
+ModuleContextImpl.d \
+SCA.d \
+ServiceList.d \
+ServiceRuntimeException.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+osoa/sca/%.o: $(ROOT)/osoa/sca/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/sources.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/sources.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/sources.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/sources.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,24 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+C_UPPER_SRCS :=
+CPP_SRCS :=
+O_SRCS :=
+ASM_SRCS :=
+S_SRCS :=
+CXX_SRCS :=
+CC_SRCS :=
+OBJ_SRCS :=
+OBJS :=
+DEPS :=
+LIBRARIES :=
+
+# Every subdirectory with source files must be described here
+SUBDIRS := \
+tuscany/sca/ws \
+tuscany/sca/util \
+tuscany/sca/model \
+tuscany/sca/core \
+osoa/sca \
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/core/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/core/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/core/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/core/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,47 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/core/ComponentServiceWrapper.cpp \
+$(ROOT)/tuscany/sca/core/ExternalServiceWrapper.cpp \
+$(ROOT)/tuscany/sca/core/Operation.cpp \
+$(ROOT)/tuscany/sca/core/SCAEntryPoint.cpp \
+$(ROOT)/tuscany/sca/core/SCARuntime.cpp \
+$(ROOT)/tuscany/sca/core/ServiceProxy.cpp \
+$(ROOT)/tuscany/sca/core/ServiceWrapper.cpp
+
+OBJS += \
+./tuscany/sca/core/ComponentServiceWrapper.o \
+./tuscany/sca/core/ExternalServiceWrapper.o \
+./tuscany/sca/core/Operation.o \
+./tuscany/sca/core/SCAEntryPoint.o \
+./tuscany/sca/core/SCARuntime.o \
+./tuscany/sca/core/ServiceProxy.o \
+./tuscany/sca/core/ServiceWrapper.o
+
+DEPS += \
+${addprefix ./tuscany/sca/core/, \
+ComponentServiceWrapper.d \
+ExternalServiceWrapper.d \
+Operation.d \
+SCAEntryPoint.d \
+SCARuntime.d \
+ServiceProxy.d \
+ServiceWrapper.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/core/%.o: $(ROOT)/tuscany/sca/core/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/model/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/model/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/model/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/model/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,83 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/model/Binding.cpp \
+$(ROOT)/tuscany/sca/model/CPPImplementation.cpp \
+$(ROOT)/tuscany/sca/model/CPPInterface.cpp \
+$(ROOT)/tuscany/sca/model/Component.cpp \
+$(ROOT)/tuscany/sca/model/EntryPoint.cpp \
+$(ROOT)/tuscany/sca/model/ExternalService.cpp \
+$(ROOT)/tuscany/sca/model/Implementation.cpp \
+$(ROOT)/tuscany/sca/model/Interface.cpp \
+$(ROOT)/tuscany/sca/model/ModelLoader.cpp \
+$(ROOT)/tuscany/sca/model/Module.cpp \
+$(ROOT)/tuscany/sca/model/Service.cpp \
+$(ROOT)/tuscany/sca/model/ServiceReference.cpp \
+$(ROOT)/tuscany/sca/model/Subsystem.cpp \
+$(ROOT)/tuscany/sca/model/System.cpp \
+$(ROOT)/tuscany/sca/model/WSBinding.cpp \
+$(ROOT)/tuscany/sca/model/Wire.cpp \
+$(ROOT)/tuscany/sca/model/WireTarget.cpp \
+$(ROOT)/tuscany/sca/model/Wsdl.cpp \
+$(ROOT)/tuscany/sca/model/WsdlOperation.cpp
+
+OBJS += \
+./tuscany/sca/model/Binding.o \
+./tuscany/sca/model/CPPImplementation.o \
+./tuscany/sca/model/CPPInterface.o \
+./tuscany/sca/model/Component.o \
+./tuscany/sca/model/EntryPoint.o \
+./tuscany/sca/model/ExternalService.o \
+./tuscany/sca/model/Implementation.o \
+./tuscany/sca/model/Interface.o \
+./tuscany/sca/model/ModelLoader.o \
+./tuscany/sca/model/Module.o \
+./tuscany/sca/model/Service.o \
+./tuscany/sca/model/ServiceReference.o \
+./tuscany/sca/model/Subsystem.o \
+./tuscany/sca/model/System.o \
+./tuscany/sca/model/WSBinding.o \
+./tuscany/sca/model/Wire.o \
+./tuscany/sca/model/WireTarget.o \
+./tuscany/sca/model/Wsdl.o \
+./tuscany/sca/model/WsdlOperation.o
+
+DEPS += \
+${addprefix ./tuscany/sca/model/, \
+Binding.d \
+CPPImplementation.d \
+CPPInterface.d \
+Component.d \
+EntryPoint.d \
+ExternalService.d \
+Implementation.d \
+Interface.d \
+ModelLoader.d \
+Module.d \
+Service.d \
+ServiceReference.d \
+Subsystem.d \
+System.d \
+WSBinding.d \
+Wire.d \
+WireTarget.d \
+Wsdl.d \
+WsdlOperation.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/model/%.o: $(ROOT)/tuscany/sca/model/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/util/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/util/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/util/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/util/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,44 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/util/DefaultLogWriter.cpp \
+$(ROOT)/tuscany/sca/util/File.cpp \
+$(ROOT)/tuscany/sca/util/Library.cpp \
+$(ROOT)/tuscany/sca/util/LogWriter.cpp \
+$(ROOT)/tuscany/sca/util/Logger.cpp \
+$(ROOT)/tuscany/sca/util/Utils.cpp
+
+OBJS += \
+./tuscany/sca/util/DefaultLogWriter.o \
+./tuscany/sca/util/File.o \
+./tuscany/sca/util/Library.o \
+./tuscany/sca/util/LogWriter.o \
+./tuscany/sca/util/Logger.o \
+./tuscany/sca/util/Utils.o
+
+DEPS += \
+${addprefix ./tuscany/sca/util/, \
+DefaultLogWriter.d \
+File.d \
+Library.d \
+LogWriter.d \
+Logger.d \
+Utils.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/util/%.o: $(ROOT)/tuscany/sca/util/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/ws/subdir.mk
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/ws/subdir.mk?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/ws/subdir.mk (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/Release/tuscany/sca/ws/subdir.mk Thu Jan 5 02:54:16 2006
@@ -0,0 +1,32 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+$(ROOT)/tuscany/sca/ws/SDOStub.cpp \
+$(ROOT)/tuscany/sca/ws/WSServiceWrapper.cpp
+
+OBJS += \
+./tuscany/sca/ws/SDOStub.o \
+./tuscany/sca/ws/WSServiceWrapper.o
+
+DEPS += \
+${addprefix ./tuscany/sca/ws/, \
+SDOStub.d \
+WSServiceWrapper.d \
+}
+
+
+# Each subdirectory must supply rules for building sources it contributes
+tuscany/sca/ws/%.o: $(ROOT)/tuscany/sca/ws/%.cpp
+ @echo 'Building file: $<'
+ @echo 'Invoking: GCC C++ Compiler'
+ @echo g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $<
+ @g++ -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 -o$@ $< && \
+ echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
+ g++ -MM -MG -P -w -I${SCA4CPP_HOME}/runtime/core/src -I${SDO4CPP}/include -I${AXISCPP_DEPLOY}/include -O3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
+ @echo 'Finished building: $<'
+ @echo ' '
+
+
Added: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.cpp
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.cpp?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.cpp (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.cpp Thu Jan 5 02:54:16 2006
@@ -0,0 +1,132 @@
+/*
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+/* $Rev$ $Date: 2005/12/22 11:33:21 $ */
+
+#include "osoa/sca/ComponentContext.h"
+#include "tuscany/sca/util/Logging.h"
+#include "tuscany/sca/util/Exceptions.h"
+#include "osoa/sca/ComponentContextImpl.h"
+#include "tuscany/sca/core/SCARuntime.h"
+
+using namespace tuscany::sca;
+
+namespace osoa
+{
+ namespace sca
+ {
+
+ // =======================================================
+ // getCurrent: create a context from the current component
+ // =======================================================
+ ComponentContext ComponentContext::getCurrent()
+ {
+ LOGENTRY(1, "ComponentContext::getCurrent");
+ Component* component = SCARuntime::getInstance()->getCurrentComponent();
+ if (!component)
+ {
+ throw ComponentContextException("No current component");
+ }
+ ComponentContextImpl* cci = new ComponentContextImpl(component);
+ LOGEXIT(1, "ComponentContext::constructor");
+ return ComponentContext(cci);
+ }
+
+ // ===========
+ // Constructor
+ // ===========
+ ComponentContext::ComponentContext(ComponentContextImpl* implementation)
+ : impl(implementation)
+ {
+ LOGENTRY(1, "ComponentContext::constructor");
+ LOGEXIT(1, "ComponentContext::constructor");
+ }
+
+ // ==========
+ // Destructor
+ // ==========
+ ComponentContext::~ComponentContext()
+ {
+ LOGENTRY(1, "ComponentContext::destructor");
+ delete impl;
+ LOGEXIT(1, "ComponentContext::destructor");
+ }
+
+ // ===================================
+ // Copy constructor: create a new impl
+ // ===================================
+ ComponentContext::ComponentContext(const ComponentContext& ctx)
+ {
+ impl = new ComponentContextImpl(impl->getComponent());
+ }
+
+ // =============================
+ // operator= : create a new impl
+ // =============================
+ ComponentContext& ComponentContext::operator=(const ComponentContext& ctx)
+ {
+ if (this != &ctx)
+ {
+ impl = new ComponentContextImpl(impl->getComponent());
+ }
+ return *this;
+ }
+
+ // ==========
+ // getService
+ // ==========
+ void* ComponentContext::getService(const char* referenceName)
+ {
+ LOGENTRY(1, "ComponentContext::getService");
+ void* service = impl->getService(referenceName);
+ LOGEXIT(1, "ComponentContext::getService");
+ return service;
+ }
+
+ // ===========
+ // getServices
+ // ===========
+ ServiceList ComponentContext::getServices(const char* referenceName)
+ {
+ return impl->getServices(referenceName);
+ }
+
+ // ============
+ // getProperties
+ // =============
+ DataObjectPtr ComponentContext::getProperties()
+ {
+ LOGENTRY(1, "ComponentContext::getProperties");
+ DataObjectPtr properties = impl->getProperties();
+ LOGEXIT(1, "ComponentContext::getProperties");
+ return properties;
+ }
+
+ // ============
+ // getDataFactory
+ // =============
+ DataFactoryPtr ComponentContext::getDataFactory()
+ {
+ LOGENTRY(1, "ComponentContext::getDataFactory");
+ DataFactoryPtr dataFactory = impl->getDataFactory();
+ LOGEXIT(1, "ComponentContext::getDataFactory");
+ return dataFactory;
+ }
+
+
+ } // End namespace sca
+} // End namespace osoa
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.cpp
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.h
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.h?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.h (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.h Thu Jan 5 02:54:16 2006
@@ -0,0 +1,105 @@
+/*
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+/* $Rev$ $Date: 2005/12/22 11:33:21 $ */
+
+#ifndef osoa_sca_componentcontext_h
+#define osoa_sca_componentcontext_h
+
+#include "osoa/sca/export.h"
+#include "osoa/sca/ServiceList.h"
+#include "commonj/sdo/SDO.h"
+namespace osoa
+{
+ namespace sca
+ {
+ class ComponentContextImpl;
+
+ /**
+ * An SCA component implementation uses the ComponentContext class to
+ * retrieve information about the configured SCA component.
+ */
+ class SCA_API ComponentContext
+ {
+
+ public:
+ /**
+ * Return a new ComponentContext for the current Component.
+ */
+ static ComponentContext getCurrent();
+
+ /**
+ * Resolve a reference name into a single configured service.
+ * If the component's reference is wired to more than one service
+ * then theis method will return an exception.
+ * @param referenceName The reference to be resolved. This must match
+ * the name of a reference configured in the component type file for
+ * this component.
+ */
+ void* getService(const char* referenceName);
+
+ /**
+ * Resolve a reference name into a list of configured services.
+ * @param referenceName The reference to be resolved. This must match
+ * the name of a reference configured in the component type file for
+ * this component.
+ */
+ ServiceList getServices(const char* referenceName);
+
+ /**
+ * Get the configured properties for the component.
+ * @return A data object representing all the properties that
+ * are configured for this component.
+ */
+ commonj::sdo::DataObjectPtr getProperties();
+
+ /**
+ * Get an SDO data factory which will allow the component to
+ * create data objects for all the types configured for this
+ * component.
+ * @return A data factory to be used by the component to create
+ * new data objects.
+ */
+ commonj::sdo::DataFactoryPtr getDataFactory();
+
+ /**
+ * Destructor
+ */
+ virtual ~ComponentContext();
+
+
+ ComponentContext(const ComponentContext&);
+ ComponentContext& operator=(const ComponentContext&);
+
+ private:
+ /**
+ * Constructor to create an interface class from the contained
+ * implementation.
+ * @param implementation the actual implementation class
+ */
+ ComponentContext(ComponentContextImpl* implementation);
+
+ /**
+ * Pointer to the class which provides the actual implementation.
+ */
+ ComponentContextImpl* impl;
+
+ };
+ } // End namespace sca
+} // End namespace osoa
+
+#endif // osoa_sca_componentcontext_h
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContext.h
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.cpp
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.cpp?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.cpp (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.cpp Thu Jan 5 02:54:16 2006
@@ -0,0 +1,270 @@
+/*
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+/* $Rev$ $Date: 2005/12/22 11:33:21 $ */
+
+#include "tuscany/sca/util/Logging.h"
+#include "tuscany/sca/util/Exceptions.h"
+#include "osoa/sca/ComponentContextImpl.h"
+#include "tuscany/sca/model/WireTarget.h"
+#include "tuscany/sca/core/ComponentServiceWrapper.h"
+#include "tuscany/sca/core/ExternalServiceWrapper.h"
+#include "tuscany/sca/model/CPPImplementation.h"
+#include "tuscany/sca/model/Module.h"
+
+using namespace tuscany::sca;
+using namespace tuscany::sca::model;
+
+namespace osoa
+{
+ namespace sca
+ {
+ // ===========
+ // Constructor
+ // ===========
+ ComponentContextImpl::ComponentContextImpl(Component* comp)
+ : component(comp)
+ {
+ LOGENTRY(1, "ComponentContextImpl::constructor");
+ LOGEXIT(1, "ComponentContextImpl::constructor");
+ }
+
+ // ==========
+ // Destructor
+ // ==========
+ ComponentContextImpl::~ComponentContextImpl()
+ {
+ // --------------------------------------------
+ // Delete the proxies served up by this context
+ // --------------------------------------------
+ for (PROXIES::iterator iter = proxies.begin(); iter != proxies.end(); iter++)
+ {
+ delete (ServiceProxy*)*iter;
+ }
+ }
+
+
+ // ==========================================================================
+ // getServices: return a list of Proxies for services wired to this reference
+ // ==========================================================================
+ ServiceList ComponentContextImpl::getServices(const char* referenceName)
+ {
+ LOGENTRY(1, "ComponentContextImpl::getServices");
+
+ string message;
+
+ // --------------------------------------------------------------
+ // locate reference in the current component and determine target
+ // --------------------------------------------------------------
+ ServiceReference* serviceReference = component->findReference(referenceName);
+ if (!serviceReference)
+ {
+ message = "Reference not defined: ";
+ message = message + referenceName;
+ throw ServiceNotFoundException(message.c_str());
+ }
+
+ // Get the target services from the ServiceReference
+ const ServiceReference::TARGETS& targets = serviceReference->getTargets();
+
+ // --------------------
+ // Validate the request
+ // --------------------
+ switch (serviceReference->getMultiplicity())
+ {
+ case ServiceReference::ONE_MANY:
+ case ServiceReference::ONE_ONE:
+ {
+ if (targets.size() == 0)
+ {
+ message = "Reference ";
+ message = message + referenceName + " not wired";
+ throw ServiceNotFoundException(message.c_str());
+ }
+ }
+ default:
+ {
+ }
+ } // end switch
+
+ // ------------------------------
+ // Create a proxy for each target
+ // ------------------------------
+ ServiceList services(targets.size());
+ for (ServiceReference::TARGETS::const_iterator iter = targets.begin();
+ iter!=targets.end();
+ iter++)
+ {
+ services.addService(getServiceProxy(serviceReference, *iter));
+ }
+
+ return services;
+
+ } // End getServices()
+
+
+ // ===================================================================
+ // getService: return a Proxy for the services wired to this reference
+ // ===================================================================
+ void* ComponentContextImpl::getService(const char* referenceName)
+ {
+ LOGENTRY(1, "ComponentContextImpl::getService");
+
+ string message;
+
+ // --------------------------------------------------------------
+ // locate reference in the current component and determine target
+ // --------------------------------------------------------------
+ ServiceReference* serviceReference = component->findReference(referenceName);
+ if (!serviceReference)
+ {
+ message = "Reference not defined: ";
+ message = message + referenceName;
+ throw ServiceNotFoundException(message.c_str());
+ }
+
+ // Get the target service from the ServiceReference
+ const ServiceReference::TARGETS& targets = serviceReference->getTargets();
+
+ // --------------------
+ // Validate the request
+ // --------------------
+ switch (serviceReference->getMultiplicity())
+ {
+ case ServiceReference::ZERO_MANY:
+ case ServiceReference::ONE_MANY:
+ {
+ message = "getService() called for reference with multiplicity >1 :";
+ message = message + referenceName;
+ throw ServiceNotFoundException(message.c_str());
+ }
+ case ServiceReference::ONE_ONE:
+ {
+ if (targets.size() == 0)
+ {
+ message = "Reference ";
+ message = message + referenceName + " not wired";
+ throw ServiceNotFoundException(message.c_str());
+ }
+ }
+ default:
+ {
+ }
+ } // end switch
+
+ // Return the proxy
+ return getServiceProxy(serviceReference, *targets.begin());
+
+ } // End getService()
+
+
+ // ==================================================================
+ // getServiceProxy: Create and return an instance of the ServiceProxy
+ // ==================================================================
+ void* ComponentContextImpl::getServiceProxy(
+ ServiceReference* serviceReference,
+ WireTarget* target)
+ {
+ // -----------------------------------
+ // Get a ServiceWrapper for the target
+ // -----------------------------------
+ ServiceWrapper* serviceWrapper = getServiceWrapper(target);
+
+ // ------------------------------
+ // Get a Proxy for this reference
+ // ------------------------------
+ try
+ {
+ ServiceProxy* serviceProxy = new ServiceProxy(component, serviceReference->getName(), serviceWrapper);
+ void* service = serviceProxy->getProxy();
+ // service MUST be set here or an exception will have been thrown
+ proxies.push_back(serviceProxy);
+ return service;
+ }
+ catch (ServiceRuntimeException&)
+ {
+ delete serviceWrapper;
+ throw ;
+ }
+ }
+
+
+ // ======================================================================
+ // getServiceWrapper: Create and return an instance of the ServiceWrapper
+ // ======================================================================
+ ServiceWrapper* ComponentContextImpl::getServiceWrapper(WireTarget* target)
+ {
+ // -------------------------
+ // Determine type of Service
+ // -------------------------
+ switch (target->getServiceType())
+ {
+ case WireTarget::ExternalServiceType:
+ {
+ // ----------------
+ // External Service
+ // ----------------
+ return ExternalServiceWrapper::createServiceWrapper((ExternalService*)target);
+ }
+
+ case WireTarget::ComponentServiceType:
+ {
+ // -----------------
+ // Component Service
+ // -----------------
+ return ComponentServiceWrapper::createServiceWrapper((Service*)target);
+ }
+
+ default:
+ {
+ string message = "Undefined wire target type for : ";
+ message = message + target->getName();
+ throw ServiceNotFoundException(message.c_str());
+ }
+ } // end switch
+ }
+
+
+
+ // ==============================================
+ // getProperties: return the component properties
+ // ==============================================
+ DataObjectPtr ComponentContextImpl::getProperties()
+ {
+ LOGENTRY(1, "ComponentContextImpl::getProperties");
+ DataObjectPtr properties = component->getProperties();
+
+ LOGEXIT(1, "ComponentContextImpl::getProperties");
+ return properties;
+ }
+
+ // ==============================================
+ // getDataFactory: return the data factory for the module in which
+ // this component resides
+ // ==============================================
+ DataFactoryPtr ComponentContextImpl::getDataFactory()
+ {
+ LOGENTRY(1, "ComponentContextImpl::getProperties");
+ DataFactoryPtr dataFactory = component->getModule()->getDataFactory();
+
+ LOGEXIT(1, "ComponentContextImpl::getDataFactory");
+ return dataFactory;
+ }
+
+
+ } // End namespace sca
+} // End namespace osoa
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.cpp
------------------------------------------------------------------------------
svn:keywords = Rev,Date
Added: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.h
URL: http://svn.apache.org/viewcvs/incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.h?rev=366157&view=auto
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.h (added)
+++ incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.h Thu Jan 5 02:54:16 2006
@@ -0,0 +1,120 @@
+/*
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+/* $Rev$ $Date: 2005/12/22 11:33:21 $ */
+
+#ifndef osoa_sca_componentcontextimpl_h
+#define osoa_sca_componentcontextimpl_h
+
+#include "osoa/sca/ServiceList.h"
+
+#include "tuscany/sca/model/Component.h"
+#include "tuscany/sca/core/ServiceWrapper.h"
+#include "tuscany/sca/core/ServiceProxy.h"
+#include "tuscany/sca/model/Service.h"
+
+using namespace tuscany::sca;
+using namespace tuscany::sca::model;
+
+namespace osoa
+{
+ namespace sca
+ {
+ /**
+ * Contains the actual implementation of a ComponentContext interface.
+ */
+ class ComponentContextImpl
+ {
+
+ public:
+ /**
+ * Constructor that takes a Component which represents the runtime
+ * model for this context.
+ */
+ ComponentContextImpl(Component* component);
+
+ /**
+ * Default constructor.
+ */
+ virtual ~ComponentContextImpl();
+
+ /**
+ * See ComponentContext.
+ */
+ void* getService(const char* referenceName);
+
+ /**
+ * See ComponentContext.
+ */
+ ServiceList getServices(const char* referenceName);
+
+ /**
+ * See ComponentContext.
+ */
+ DataObjectPtr getProperties();
+
+ /**
+ * See ComponentContext.
+ */
+ commonj::sdo::DataFactoryPtr getDataFactory();
+
+ /**
+ * Returns the contained Component.
+ * @return The Component to which this context refers.
+ */
+ Component* getComponent() {return component;}
+
+ private:
+ ComponentContextImpl(const ComponentContextImpl&);
+ ComponentContextImpl& operator=(const ComponentContextImpl&);
+
+ /**
+ * Pointer to the runtime model Component to which this
+ * context refers.
+ */
+ Component* component;
+
+ /**
+ * Helper method to return a proxy to a service.
+ * @param serviceReference The source reference.
+ * @param target The target to which this source reference is wired.
+ * @return A pointer to an object which can be cast to the business
+ * class representing the target.
+ */
+ void* getServiceProxy(
+ ServiceReference* serviceReference,
+ WireTarget* target);
+
+ /**
+ * Helper method to return a wrapper for a target service.
+ * @param target The target for which this wrapper is to be created.
+ * @return The service wrapper.
+ */
+ ServiceWrapper* getServiceWrapper(WireTarget* target);
+
+
+ typedef vector<ServiceProxy*> PROXIES;
+ /**
+ * A vector of the proxies created by this ComponentContext. The
+ * proxies will be destroyed when the ComponentContext is destroyed.
+ */
+ PROXIES proxies;
+ };
+ } // End namespace sca
+} // End namespace osoa
+
+#endif // osoa_sca_componentcontextimpl_h
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/cpp/sca/runtime/core/src/osoa/sca/ComponentContextImpl.h
------------------------------------------------------------------------------
svn:keywords = Rev,Date