You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2006/02/14 22:11:27 UTC

svn commit: r377833 [1/4] - in /incubator/tuscany/java: samples/helloworld/helloworld/ samples/helloworld/helloworldmc/ sca/ sca/container.java/src/main/java/org/apache/tuscany/container/java/injection/ sca/container.js/ sca/container.js/src/ sca/conta...

Author: jboynes
Date: Tue Feb 14 13:11:19 2006
New Revision: 377833

URL: http://svn.apache.org/viewcvs?rev=377833&view=rev
Log:
commit patches from Ant Elder for TUSCANY-26

Added:
    incubator/tuscany/java/sca/container.js/   (with props)
    incubator/tuscany/java/sca/container.js/LICENSE.txt   (with props)
    incubator/tuscany/java/sca/container.js/pom.xml   (with props)
    incubator/tuscany/java/sca/container.js/src/
    incubator/tuscany/java/sca/container.js/src/main/
    incubator/tuscany/java/sca/container.js/src/main/java/
    incubator/tuscany/java/sca/container.js/src/main/java/org/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptAssemblyFactory.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptImplementation.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptAssemblyFactoryImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/DocumentRoot.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyFactory.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyPackage.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptImplementation.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/impl/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/impl/DocumentRootImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/impl/JavaScriptAssemblyFactoryImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/impl/JavaScriptAssemblyPackageImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/impl/JavaScriptImplementationImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/builder/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/builder/JavaScriptComponentContextBuilder.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/config/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/config/JavaScriptComponentRuntimeConfiguration.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/context/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/context/JavaScriptComponentContext.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/handler/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/handler/AbstractJavaScriptComponentInvoker.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/handler/JavaScriptComponentConfigurationHandler.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/handler/ScopedJavaScriptComponentInvoker.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/injection/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/injection/ReferenceProxyTargetFactory.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/rhino/
    incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/rhino/RhinoInvoker.java   (with props)
    incubator/tuscany/java/sca/container.js/src/main/resources/
    incubator/tuscany/java/sca/container.js/src/main/resources/model/
    incubator/tuscany/java/sca/container.js/src/main/resources/model/sca-core.xsd   (with props)
    incubator/tuscany/java/sca/container.js/src/main/resources/model/sca-implementation-js.xsd   (with props)
    incubator/tuscany/java/sca/container.js/src/main/resources/org/
    incubator/tuscany/java/sca/container.js/src/main/resources/org/apache/
    incubator/tuscany/java/sca/container.js/src/main/resources/org/apache/tuscany/
    incubator/tuscany/java/sca/container.js/src/main/resources/org/apache/tuscany/container/
    incubator/tuscany/java/sca/container.js/src/main/resources/org/apache/tuscany/container/js/
    incubator/tuscany/java/sca/container.js/src/main/resources/org/apache/tuscany/container/js/handler/
    incubator/tuscany/java/sca/container.js/src/main/resources/org/apache/tuscany/container/js/handler/JavaScriptComponentConfigurationHandler.componentType
    incubator/tuscany/java/sca/container.js/src/main/resources/sca.fragment
    incubator/tuscany/java/sca/container.js/src/main/resources/tuscany-model.config
    incubator/tuscany/java/sca/container.js/src/samples/
    incubator/tuscany/java/sca/container.js/src/samples/java/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/js/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/js/sample/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/js/sample/helloworld/
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/js/sample/helloworld/HelloWorld.java   (with props)
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/js/sample/helloworld/HelloWorldImpl.componentType
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/js/sample/helloworld/HelloWorldImpl.js
    incubator/tuscany/java/sca/container.js/src/samples/java/org/apache/tuscany/container/js/sample/helloworld/Main.java   (with props)
    incubator/tuscany/java/sca/container.js/src/samples/java/sca.module
    incubator/tuscany/java/sca/container.js/src/test/
    incubator/tuscany/java/sca/container.js/src/test/java/
    incubator/tuscany/java/sca/container.js/src/test/java/org/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/impl/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationTestCase.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/mock/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/mock/HelloWorldService.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/JavaScriptAssemblyLoaderTestCase.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/account/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/account/AccountReport.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/account/AccountService.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/account/AccountSummary.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/AccountDataService.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/CheckingAccount.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/SavingsAccount.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/StockAccount.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/stockquote/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/stockquote/StockQuoteService.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/stockquote/StockQuoteServiceImpl.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/stockquote/StockQuoteWebService.wsdl
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/config/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/config/EMFConfigurationLoaderTestCase.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/rhino/
    incubator/tuscany/java/sca/container.js/src/test/java/org/apache/tuscany/container/js/rhino/RhinoInvokerTestCase.java   (with props)
    incubator/tuscany/java/sca/container.js/src/test/resources/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/mock/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/mock/HelloWorldImpl.componentType
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/mock/HelloWorldImpl.js
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/AccountService.wsdl
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/AccountServiceImpl.componentType
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/account/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/account/AccountService.wsdl
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/account/AccountServiceImpl.componentType
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/accountdata/AccountDataServiceImpl.componentType
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/stockquote/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/stockquote/StockQuoteServiceImpl.componentType
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/bigbank/account/services/stockquote/StockQuoteWebService.wsdl
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/assembly/tests/sca.module
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/config/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/config/EMFLoaderTest1.module
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/rhino/
    incubator/tuscany/java/sca/container.js/src/test/resources/org/apache/tuscany/container/js/rhino/RhinoInvokerTestCase.js
Modified:
    incubator/tuscany/java/samples/helloworld/helloworld/pom.xml
    incubator/tuscany/java/samples/helloworld/helloworldmc/pom.xml
    incubator/tuscany/java/sca/container.java/src/main/java/org/apache/tuscany/container/java/injection/ReferenceProxyTargetFactory.java
    incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/context/impl/TuscanyModuleComponentContextImpl.java
    incubator/tuscany/java/sca/pom.xml

Modified: incubator/tuscany/java/samples/helloworld/helloworld/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/helloworld/helloworld/pom.xml?rev=377833&r1=377832&r2=377833&view=diff
==============================================================================
--- incubator/tuscany/java/samples/helloworld/helloworld/pom.xml (original)
+++ incubator/tuscany/java/samples/helloworld/helloworld/pom.xml Tue Feb 14 13:11:19 2006
@@ -40,6 +40,12 @@
             <version>${pom.version}</version>
             <scope>compile</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany</groupId>
+            <artifactId>tuscany-container-js</artifactId>
+            <version>${pom.version}</version>
+            <scope>compile</scope>
+        </dependency>
 
         <dependency>
             <groupId>junit</groupId>

Modified: incubator/tuscany/java/samples/helloworld/helloworldmc/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/helloworld/helloworldmc/pom.xml?rev=377833&r1=377832&r2=377833&view=diff
==============================================================================
--- incubator/tuscany/java/samples/helloworld/helloworldmc/pom.xml (original)
+++ incubator/tuscany/java/samples/helloworld/helloworldmc/pom.xml Tue Feb 14 13:11:19 2006
@@ -40,6 +40,12 @@
             <version>${pom.version}</version>
             <scope>compile</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany</groupId>
+            <artifactId>tuscany-container-js</artifactId>
+            <version>${pom.version}</version>
+            <scope>compile</scope>
+        </dependency>
 
         <dependency>
             <groupId>junit</groupId>

Modified: incubator/tuscany/java/sca/container.java/src/main/java/org/apache/tuscany/container/java/injection/ReferenceProxyTargetFactory.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.java/src/main/java/org/apache/tuscany/container/java/injection/ReferenceProxyTargetFactory.java?rev=377833&r1=377832&r2=377833&view=diff
==============================================================================
--- incubator/tuscany/java/sca/container.java/src/main/java/org/apache/tuscany/container/java/injection/ReferenceProxyTargetFactory.java (original)
+++ incubator/tuscany/java/sca/container.java/src/main/java/org/apache/tuscany/container/java/injection/ReferenceProxyTargetFactory.java Tue Feb 14 13:11:19 2006
@@ -46,40 +46,6 @@
         if (factory == null) {
             throw new FactoryInitException("No proxy factory found");
         }
-        // FIXME Why do we need any of the code below? START
-        targetName = reference.getReference().getName();
-        Class targetInterfaceType = null;
-
-        // either an ExternalService or ServiceValue
-        List<ConfiguredService> targetServiceEndpoints = reference.getConfiguredServices();
-        ConfiguredService targetServiceEndpoint = !targetServiceEndpoints.isEmpty() ? targetServiceEndpoints.get(0) : null;
-        if (targetServiceEndpoint.getPart() instanceof ExternalService) {
-            targetName = ((ExternalService) targetServiceEndpoint.getPart()).getName();
-        } else if (targetServiceEndpoint.getPart() instanceof Component) {
-            // @FIXME this will only work for Java types
-            try {
-                Component targetComponent = (Component) targetServiceEndpoint.getPart();
-                targetInterfaceType = JavaIntrospectionHelper.loadClass(((JavaImplementation) targetComponent
-                        .getComponentImplementation()).getClass_());
-                targetName = targetComponent.getName();
-            } catch (ClassNotFoundException e) {
-                throw new FactoryInitException(e);
-            }
-        } else {
-            if (targetServiceEndpoint == null) {
-                throw new FactoryInitException("Target type was null");
-
-            } else {
-                if (targetServiceEndpoint.getPart() != null) {
-                    FactoryInitException e = new FactoryInitException("Unknown reference target type");
-                    e.setIdentifier(targetServiceEndpoint.getPart().getClass().getName());
-                    throw e;
-                } else {
-                    throw new FactoryInitException("Reference target type was null");
-                }
-            }
-        }
-        // FIXME Why do we need any of the code above? END
     }
 
     // ----------------------------------

Propchange: incubator/tuscany/java/sca/container.js/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Feb 14 13:11:19 2006
@@ -0,0 +1,13 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+.settings
+.deployables
+.wtpmodules
+

Added: incubator/tuscany/java/sca/container.js/LICENSE.txt
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/LICENSE.txt?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/LICENSE.txt (added)
+++ incubator/tuscany/java/sca/container.js/LICENSE.txt Tue Feb 14 13:11:19 2006
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.

Propchange: incubator/tuscany/java/sca/container.js/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/java/sca/container.js/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/pom.xml?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/pom.xml (added)
+++ incubator/tuscany/java/sca/container.js/pom.xml Tue Feb 14 13:11:19 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *  Copyright (c) 2005-2006 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.
+ -->
+<project>
+    <parent>
+        <groupId>org.apache.tuscany</groupId>
+        <artifactId>tuscany-sca</artifactId>
+        <version>SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>tuscany-container-js</artifactId>
+    <name>Tuscany JavaScript Component Implementation Type</name>
+    <description>Tuscany JavaScript Component Implementation Type.</description>
+    <version>SNAPSHOT</version>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany</groupId>
+            <artifactId>tuscany-core</artifactId>
+            <version>${pom.version}</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>rhino</groupId>
+            <artifactId>js</artifactId>
+            <version>1.6R2</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+</project>

Propchange: incubator/tuscany/java/sca/container.js/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptAssemblyFactory.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptAssemblyFactory.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptAssemblyFactory.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptAssemblyFactory.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,28 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly;
+
+import org.apache.tuscany.model.assembly.AssemblyFactory;
+
+public interface JavaScriptAssemblyFactory extends AssemblyFactory {
+
+    /**
+     * Returns a new object of class '<em>JavaScript Implementation</em>'.
+     */
+    JavaScriptImplementation createJavaScriptImplementation();
+
+}

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptAssemblyFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptAssemblyFactory.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptImplementation.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptImplementation.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptImplementation.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptImplementation.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,32 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly;
+
+import org.apache.tuscany.common.resource.loader.ResourceLoader;
+import org.apache.tuscany.container.js.rhino.RhinoInvoker;
+import org.apache.tuscany.model.assembly.ComponentImplementation;
+
+public interface JavaScriptImplementation extends ComponentImplementation {
+
+    public ResourceLoader getResourceLoader();
+
+    public String getScriptFile();
+
+    public void setScriptFile(String fn);
+
+    public RhinoInvoker getRhinoInvoker();
+}

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptImplementation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/JavaScriptImplementation.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptAssemblyFactoryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptAssemblyFactoryImpl.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptAssemblyFactoryImpl.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptAssemblyFactoryImpl.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,33 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly.impl;
+
+import org.apache.tuscany.container.js.assembly.JavaScriptAssemblyFactory;
+import org.apache.tuscany.container.js.assembly.JavaScriptImplementation;
+import org.apache.tuscany.model.assembly.impl.AssemblyFactoryImpl;
+
+public class JavaScriptAssemblyFactoryImpl extends AssemblyFactoryImpl implements JavaScriptAssemblyFactory {
+
+    public JavaScriptAssemblyFactoryImpl() {
+        super();
+    }
+
+    public JavaScriptImplementation createJavaScriptImplementation() {
+        return new JavaScriptImplementationImpl();
+    }
+
+}

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptAssemblyFactoryImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptAssemblyFactoryImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationImpl.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationImpl.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationImpl.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,263 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly.impl;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.tuscany.common.resource.loader.ResourceLoader;
+import org.apache.tuscany.container.js.assembly.JavaScriptImplementation;
+import org.apache.tuscany.container.js.rhino.RhinoInvoker;
+import org.apache.tuscany.core.config.ConfigurationException;
+import org.apache.tuscany.model.assembly.AssemblyModelContext;
+import org.apache.tuscany.model.assembly.AssemblyModelVisitor;
+import org.apache.tuscany.model.assembly.Component;
+import org.apache.tuscany.model.assembly.ComponentType;
+import org.apache.tuscany.model.assembly.Property;
+import org.apache.tuscany.model.assembly.Reference;
+import org.apache.tuscany.model.assembly.Service;
+import org.apache.tuscany.model.assembly.impl.AssemblyModelVisitorHelperImpl;
+import org.apache.tuscany.model.assembly.impl.ComponentTypeImpl;
+import org.apache.tuscany.model.util.XMLResourceFactoryImpl;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.osoa.sca.model.DocumentRoot;
+
+import commonj.sdo.DataObject;
+
+public class JavaScriptImplementationImpl extends org.apache.tuscany.container.js.assembly.sdo.impl.JavaScriptImplementationImpl implements
+        JavaScriptImplementation {
+
+    private static final long serialVersionUID = 1L;
+
+    private RhinoInvoker rhinoInvoker;
+
+    private ComponentType componentType;
+
+    private Object runtimeConfiguration;
+
+    private ResourceLoader resourceLoader;
+
+    public JavaScriptImplementationImpl() {
+        this.componentType = new ComponentTypeImpl();
+    }
+
+    public String getScriptFile() {
+        return super.getScriptFile();
+    }
+
+    public void setScriptFile(String fn) {
+        super.setScriptFile(fn);
+    }
+
+    public RhinoInvoker getRhinoInvoker() {
+        return rhinoInvoker;
+    }
+
+    public ResourceLoader getResourceLoader() {
+        return resourceLoader;
+    }
+
+    public void initialize(AssemblyModelContext modelContext) {
+        if (getComponentType().getServices().isEmpty()) {
+            try {
+
+                this.resourceLoader = modelContext.getResourceLoader();
+                this.componentType = createComponentType(modelContext);
+                this.rhinoInvoker = createRhinoInvoker();
+
+            } catch (Exception e) {
+                throw new IllegalArgumentException("Exception initializing component: " + getComponentName(), e);
+                // TODO: throw better exception, should ConfigurationException be unchecked?
+            }
+        }
+    }
+
+    private ComponentType createComponentType(AssemblyModelContext modelContext) throws ConfigurationException {
+        //TODO: make .componentType side file optional for JavaScript components
+        String scriptFile = getScriptFile();
+        String baseName = scriptFile.substring(0, scriptFile.lastIndexOf('.'));
+        String ctName = baseName + ".componentType";
+        try {
+            URL url = modelContext.getResourceLoader().getResource(ctName);
+            if (url == null) {
+                throw new ConfigurationException("'.componentType' file not found: " + ctName);
+            }
+
+            InputStream is = url.openStream();
+            try {
+                Resource resource = new XMLResourceFactoryImpl().createResource(URI.createURI(getScriptFile()));
+                resource.load(is, null);
+                DocumentRoot root = (DocumentRoot) resource.getContents().get(0);
+                ComponentType componentType = (ComponentType) root.getComponentType();
+
+                componentType.initialize(modelContext);
+
+                return componentType;
+
+            } finally {
+                is.close();
+            }
+        } catch (Exception e) {
+            // TODO: .ct file bad interface class name gets WrappedException that never gets unwrapped
+            throw new ConfigurationException("Exception initializing '.componentType' file: " + ctName, e);
+        }
+    }
+
+    private RhinoInvoker createRhinoInvoker() throws ConfigurationException {
+        String script = readScript();
+        Map<String, Object> context = getPropertyDefaults();
+        String name = getComponentName() + ":" + getScriptFile();
+        RhinoInvoker ri = new RhinoInvoker(name, script, context);
+        return ri;
+    }
+
+    private String readScript() throws ConfigurationException {
+        try {
+            URL url = resourceLoader.getResource(getScriptFile());
+            if (url == null) {
+                throw new ConfigurationException("script not found: " + getScriptFile());
+            }
+
+            InputStream inputStream = url.openStream();
+            try {
+
+                StringBuffer sb = new StringBuffer();
+                int n = 0;
+                while ((n = inputStream.read()) != -1) {
+                    sb.append((char) n);
+                }
+                String s = sb.toString();
+
+                return s;
+
+            } finally {
+                inputStream.close();
+            }
+        } catch (IOException e) {
+            throw new ConfigurationException("IOException reading script file : " + getScriptFile());
+        }
+    }
+
+    private String getComponentName() {
+        String componentName;
+        DataObject o = getContainer();
+        if (o == null) {
+            componentName = "null";
+        } else {
+            componentName = ((Component) o).getName();
+        }
+        return componentName;
+    }
+
+    private Map<String, Object> getPropertyDefaults() {
+        Map<String, Object> context = new HashMap<String, Object>();
+        List<Property> ps = getProperties();
+        for (Property p : ps) {
+            context.put(p.getName(), p.getDefault());
+        }
+        return context;
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.AssemblyModelObject#accept(org.apache.tuscany.model.assembly.AssemblyModelVisitor)
+     */
+    public boolean accept(AssemblyModelVisitor visitor) {
+        return AssemblyModelVisitorHelperImpl.accept(this, visitor);
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.RuntimeManagedModelObject#getRuntimeConfiguration()
+     */
+    public Object getRuntimeConfiguration() {
+        return runtimeConfiguration;
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.RuntimeManagedModelObject#setRuntimeConfiguration(java.lang.Object)
+     */
+    public void setRuntimeConfiguration(Object configuration) {
+        this.runtimeConfiguration = configuration;
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.AssemblyModelObject#freeze()
+     */
+    public void freeze() {
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.TImplementation#setComponentType(org.apache.tuscany.model.assembly.ComponentType)
+     */
+    public void setComponentType(ComponentType componentType) {
+        this.componentType = componentType;
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.TImplementation#getComponentType()
+     */
+    public ComponentType getComponentType() {
+        return componentType;
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.ComponentType#getProperties()
+     */
+    public List<org.apache.tuscany.model.assembly.Property> getProperties() {
+        return componentType.getProperties();
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.ComponentType#getProperty(java.lang.String)
+     */
+    public org.apache.tuscany.model.assembly.Property getProperty(String name) {
+        return componentType.getProperty(name);
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.ComponentType#getReference(java.lang.String)
+     */
+    public Reference getReference(String name) {
+        return componentType.getReference(name);
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.ComponentType#getReferences()
+     */
+    public List<Reference> getReferences() {
+        return componentType.getReferences();
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.ComponentType#getService(java.lang.String)
+     */
+    public Service getService(String name) {
+        return componentType.getService(name);
+    }
+
+    /**
+     * @see org.apache.tuscany.model.assembly.ComponentType#getServices()
+     */
+    public List<Service> getServices() {
+        return componentType.getServices();
+    }
+
+}

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/impl/JavaScriptImplementationImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/DocumentRoot.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/DocumentRoot.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/DocumentRoot.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/DocumentRoot.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,123 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly.sdo;
+
+import commonj.sdo.Sequence;
+
+import java.util.Map;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getMixed <em>Mixed</em>}</li>
+ *   <li>{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ *   <li>{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ *   <li>{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getImplementationJs <em>Implementation Js</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot {
+	/**
+	 * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
+	 * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>Mixed</em>' attribute list.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getDocumentRoot_Mixed()
+	 * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+	 *        extendedMetaData="kind='elementWildcard' name=':mixed'"
+	 * @generated
+	 */
+	Sequence getMixed();
+
+	/**
+	 * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
+	 * The key is of type {@link java.lang.String},
+	 * and the value is of type {@link java.lang.String},
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getDocumentRoot_XMLNSPrefixMap()
+	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
+	 *        extendedMetaData="kind='attribute' name='xmlns:prefix'"
+	 * @generated
+	 */
+	Map getXMLNSPrefixMap();
+
+	/**
+	 * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
+	 * The key is of type {@link java.lang.String},
+	 * and the value is of type {@link java.lang.String},
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>XSI Schema Location</em>' map.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getDocumentRoot_XSISchemaLocation()
+	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
+	 *        extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
+	 * @generated
+	 */
+	Map getXSISchemaLocation();
+
+	/**
+	 * Returns the value of the '<em><b>Implementation Js</b></em>' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>Implementation Js</em>' containment reference isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>Implementation Js</em>' containment reference.
+	 * @see #setImplementationJs(JavaScriptImplementation)
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getDocumentRoot_ImplementationJs()
+	 * @model containment="true" resolveProxies="false" upper="-2" transient="true" volatile="true" derived="true"
+	 *        extendedMetaData="kind='element' name='implementation.js' namespace='##targetNamespace' affiliation='http://www.osoa.org/xmlns/sca/0.9#implementation'"
+	 * @generated
+	 */
+	JavaScriptImplementation getImplementationJs();
+
+	/**
+	 * Sets the value of the '{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getImplementationJs <em>Implementation Js</em>}' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @param value the new value of the '<em>Implementation Js</em>' containment reference.
+	 * @see #getImplementationJs()
+	 * @generated
+	 */
+	void setImplementationJs(JavaScriptImplementation value);
+
+} // DocumentRoot

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/DocumentRoot.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/DocumentRoot.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyFactory.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyFactory.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyFactory.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyFactory.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,65 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly.sdo;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage
+ * @generated
+ */
+public interface JavaScriptAssemblyFactory extends EFactory {
+	/**
+	 * The singleton instance of the factory.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	JavaScriptAssemblyFactory eINSTANCE = new org.apache.tuscany.container.js.assembly.sdo.impl.JavaScriptAssemblyFactoryImpl();
+
+	/**
+	 * Returns a new object of class '<em>Document Root</em>'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return a new object of class '<em>Document Root</em>'.
+	 * @generated
+	 */
+	DocumentRoot createDocumentRoot();
+
+	/**
+	 * Returns a new object of class '<em>Java Script Implementation</em>'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return a new object of class '<em>Java Script Implementation</em>'.
+	 * @generated
+	 */
+	JavaScriptImplementation createJavaScriptImplementation();
+
+	/**
+	 * Returns the package supported by this factory.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the package supported by this factory.
+	 * @generated
+	 */
+	JavaScriptAssemblyPackage getJavaScriptAssemblyPackage();
+
+} //JavaScriptAssemblyFactory

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyFactory.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyPackage.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyPackage.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyPackage.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyPackage.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,282 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly.sdo;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.apache.tuscany.model.assembly.sdo.AssemblyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ *   <li>each class,</li>
+ *   <li>each feature of each class,</li>
+ *   <li>each enum,</li>
+ *   <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface JavaScriptAssemblyPackage extends EPackage {
+	/**
+	 * The package name.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	String eNAME = "assembly";
+
+	/**
+	 * The package namespace URI.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	String eNS_URI = "http://org.apache.tuscany/xmlns/js/0.9";
+
+	/**
+	 * The package namespace name.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	String eNS_PREFIX = "js";
+
+	/**
+	 * The singleton instance of the package.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 */
+	JavaScriptAssemblyPackage eINSTANCE = org.apache.tuscany.container.js.assembly.sdo.impl.JavaScriptAssemblyPackageImpl.init();
+
+	/**
+	 * The meta object id for the '{@link org.apache.tuscany.container.js.assembly.sdo.impl.DocumentRootImpl <em>Document Root</em>}' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see org.apache.tuscany.container.js.assembly.sdo.impl.DocumentRootImpl
+	 * @see org.apache.tuscany.container.js.assembly.sdo.impl.JavaScriptAssemblyPackageImpl#getDocumentRoot()
+	 * @generated
+	 */
+	int DOCUMENT_ROOT = 0;
+
+	/**
+	 * The feature id for the '<em><b>Mixed</b></em>' attribute list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int DOCUMENT_ROOT__MIXED = 0;
+
+	/**
+	 * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+	/**
+	 * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+	/**
+	 * The feature id for the '<em><b>Implementation Js</b></em>' containment reference.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int DOCUMENT_ROOT__IMPLEMENTATION_JS = 3;
+
+	/**
+	 * The number of structural features of the the '<em>Document Root</em>' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+	/**
+	 * The meta object id for the '{@link org.apache.tuscany.container.js.assembly.sdo.impl.JavaScriptImplementationImpl <em>Java Script Implementation</em>}' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @see org.apache.tuscany.container.js.assembly.sdo.impl.JavaScriptImplementationImpl
+	 * @see org.apache.tuscany.container.js.assembly.sdo.impl.JavaScriptAssemblyPackageImpl#getJavaScriptImplementation()
+	 * @generated
+	 */
+	int JAVA_SCRIPT_IMPLEMENTATION = 1;
+
+	/**
+	 * The feature id for the '<em><b>Any</b></em>' attribute list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int JAVA_SCRIPT_IMPLEMENTATION__ANY = AssemblyPackage.IMPLEMENTATION_FEATURE_COUNT + 0;
+
+	/**
+	 * The feature id for the '<em><b>Script File</b></em>' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int JAVA_SCRIPT_IMPLEMENTATION__SCRIPT_FILE = AssemblyPackage.IMPLEMENTATION_FEATURE_COUNT + 1;
+
+	/**
+	 * The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int JAVA_SCRIPT_IMPLEMENTATION__ANY_ATTRIBUTE = AssemblyPackage.IMPLEMENTATION_FEATURE_COUNT + 2;
+
+	/**
+	 * The number of structural features of the the '<em>Java Script Implementation</em>' class.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @generated
+	 * @ordered
+	 */
+	int JAVA_SCRIPT_IMPLEMENTATION_FEATURE_COUNT = AssemblyPackage.IMPLEMENTATION_FEATURE_COUNT + 3;
+
+
+	/**
+	 * Returns the meta object for class '{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot <em>Document Root</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for class '<em>Document Root</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.DocumentRoot
+	 * @generated
+	 */
+	EClass getDocumentRoot();
+
+	/**
+	 * Returns the meta object for the attribute list '{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getMixed <em>Mixed</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the attribute list '<em>Mixed</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getMixed()
+	 * @see #getDocumentRoot()
+	 * @generated
+	 */
+	EAttribute getDocumentRoot_Mixed();
+
+	/**
+	 * Returns the meta object for the map '{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getXMLNSPrefixMap()
+	 * @see #getDocumentRoot()
+	 * @generated
+	 */
+	EReference getDocumentRoot_XMLNSPrefixMap();
+
+	/**
+	 * Returns the meta object for the map '{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the map '<em>XSI Schema Location</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getXSISchemaLocation()
+	 * @see #getDocumentRoot()
+	 * @generated
+	 */
+	EReference getDocumentRoot_XSISchemaLocation();
+
+	/**
+	 * Returns the meta object for the containment reference '{@link org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getImplementationJs <em>Implementation Js</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the containment reference '<em>Implementation Js</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.DocumentRoot#getImplementationJs()
+	 * @see #getDocumentRoot()
+	 * @generated
+	 */
+	EReference getDocumentRoot_ImplementationJs();
+
+	/**
+	 * Returns the meta object for class '{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation <em>Java Script Implementation</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for class '<em>Java Script Implementation</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation
+	 * @generated
+	 */
+	EClass getJavaScriptImplementation();
+
+	/**
+	 * Returns the meta object for the attribute list '{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getAny <em>Any</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the attribute list '<em>Any</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getAny()
+	 * @see #getJavaScriptImplementation()
+	 * @generated
+	 */
+	EAttribute getJavaScriptImplementation_Any();
+
+	/**
+	 * Returns the meta object for the attribute '{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getScriptFile <em>Script File</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the attribute '<em>Script File</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getScriptFile()
+	 * @see #getJavaScriptImplementation()
+	 * @generated
+	 */
+	EAttribute getJavaScriptImplementation_ScriptFile();
+
+	/**
+	 * Returns the meta object for the attribute list '{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getAnyAttribute <em>Any Attribute</em>}'.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the meta object for the attribute list '<em>Any Attribute</em>'.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getAnyAttribute()
+	 * @see #getJavaScriptImplementation()
+	 * @generated
+	 */
+	EAttribute getJavaScriptImplementation_AnyAttribute();
+
+	/**
+	 * Returns the factory that creates the instances of the model.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @return the factory that creates the instances of the model.
+	 * @generated
+	 */
+	JavaScriptAssemblyFactory getJavaScriptAssemblyFactory();
+
+} //JavaScriptAssemblyPackage

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyPackage.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptAssemblyPackage.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Added: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptImplementation.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptImplementation.java?rev=377833&view=auto
==============================================================================
--- incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptImplementation.java (added)
+++ incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptImplementation.java Tue Feb 14 13:11:19 2006
@@ -0,0 +1,103 @@
+/**
+ *
+ *  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.
+ */
+package org.apache.tuscany.container.js.assembly.sdo;
+
+import commonj.sdo.Sequence;
+
+import org.osoa.sca.model.Implementation;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Java Script Implementation</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getAny <em>Any</em>}</li>
+ *   <li>{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getScriptFile <em>Script File</em>}</li>
+ *   <li>{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getAnyAttribute <em>Any Attribute</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getJavaScriptImplementation()
+ * @model extendedMetaData="name='JavaScriptImplementation' kind='elementOnly'"
+ * @generated
+ */
+public interface JavaScriptImplementation extends Implementation {
+	/**
+	 * Returns the value of the '<em><b>Any</b></em>' attribute list.
+	 * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>Any</em>' attribute list isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>Any</em>' attribute list.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getJavaScriptImplementation_Any()
+	 * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+	 *        extendedMetaData="kind='elementWildcard' wildcards='##other' name=':0' processing='lax'"
+	 * @generated
+	 */
+	Sequence getAny();
+
+	/**
+	 * Returns the value of the '<em><b>Script File</b></em>' attribute.
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>Script File</em>' attribute isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>Script File</em>' attribute.
+	 * @see #setScriptFile(String)
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getJavaScriptImplementation_ScriptFile()
+	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.NCName" required="true"
+	 *        extendedMetaData="kind='attribute' name='scriptFile'"
+	 * @generated
+	 */
+	String getScriptFile();
+
+	/**
+	 * Sets the value of the '{@link org.apache.tuscany.container.js.assembly.sdo.JavaScriptImplementation#getScriptFile <em>Script File</em>}' attribute.
+	 * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+	 * @param value the new value of the '<em>Script File</em>' attribute.
+	 * @see #getScriptFile()
+	 * @generated
+	 */
+	void setScriptFile(String value);
+
+	/**
+	 * Returns the value of the '<em><b>Any Attribute</b></em>' attribute list.
+	 * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+	 * <!-- begin-user-doc -->
+	 * <p>
+	 * If the meaning of the '<em>Any Attribute</em>' attribute list isn't clear,
+	 * there really should be more of a description here...
+	 * </p>
+	 * <!-- end-user-doc -->
+	 * @return the value of the '<em>Any Attribute</em>' attribute list.
+	 * @see org.apache.tuscany.container.js.assembly.sdo.JavaScriptAssemblyPackage#getJavaScriptImplementation_AnyAttribute()
+	 * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+	 *        extendedMetaData="kind='attributeWildcard' wildcards='##any' name=':2' processing='lax'"
+	 * @generated
+	 */
+	Sequence getAnyAttribute();
+
+} // JavaScriptImplementation

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptImplementation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/container.js/src/main/java/org/apache/tuscany/container/js/assembly/sdo/JavaScriptImplementation.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date