You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/04/20 00:31:00 UTC

svn commit: r530580 - in /incubator/tuscany/java/sca/modules/implementation-script/src: main/java/org/apache/tuscany/implementation/script/ test/java/org/apache/tuscany/implementation/script/itests/properties/ test/java/org/apache/tuscany/implementatio...

Author: antelder
Date: Thu Apr 19 15:30:58 2007
New Revision: 530580

URL: http://svn.apache.org/viewvc?view=rev&rev=530580
Log:
Script implementation, start getting references going and associated clean up

Added:
    incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/properties/
      - copied from r530435, incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/properties/
    incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/
      - copied from r530435, incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/references/
    incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/HelloWorldTarget.java   (with props)
    incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/JavaScriptReferenceTestCase.java   (with props)
    incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/
    incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/
    incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite
    incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType   (with props)
    incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js   (with props)
Removed:
    incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/properties/
    incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/references/
Modified:
    incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptComponent.java
    incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptImplementation.java
    incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptInvoker.java

Modified: incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptComponent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptComponent.java?view=diff&rev=530580&r1=530579&r2=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptComponent.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptComponent.java Thu Apr 19 15:30:58 2007
@@ -19,10 +19,11 @@
 
 package org.apache.tuscany.implementation.script;
 
-import java.io.Reader;
 import java.io.StringReader;
 import java.net.URI;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 
 import javax.script.ScriptEngine;
 import javax.script.ScriptEngineManager;
@@ -47,11 +48,13 @@
 
     private ScriptImplementation impl;
     private ComponentContext componentContext;
+    private Map<String, Object> references;
 
     public ScriptComponent(URI uri, URI groupId, ScriptImplementation impl) {
         super(uri, null, null, groupId, 50);
         this.impl = impl;
         componentContext = new ComponentContextImpl(this);
+        references = new HashMap<String, Object>();
     }
 
     public void configureProperty(String propertyName) {
@@ -70,31 +73,27 @@
         return componentContext;
     }
 
+    @SuppressWarnings("unchecked")
     public InstanceWrapper createInstanceWrapper() throws ObjectCreationException {
         return new InstanceWrapperBase(createInstance());
     }
 
     public Object createInstance() throws ObjectCreationException {
         try {
-            
-            // TODO: classloader?
-            Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
-           
+
             ScriptEngineManager manager = new ScriptEngineManager();
+            
+            for (String referenceName : references.keySet()) {
+                Object reference = references.get(referenceName);
+                manager.put(referenceName, reference);
+            }
+            
             ScriptEngine engine = manager.getEngineByExtension(impl.getScriptLanguage());
             if (engine == null) {
                 throw new ObjectCreationException("no script engine found for language: " + impl.getScriptLanguage());
             }
            
-            Reader reader;
-//            if (impl.getInlineSrc() == null) {
-//                URL url = impl.getClassLoader().getResource(impl.getScriptName());
-//                reader = new InputStreamReader(url.openStream());
-//            } else {
-            reader = new StringReader(impl.getScriptSrc());
-//            }
-                       
-            engine.eval(reader);
+            engine.eval(new StringReader(impl.getScriptSrc()));
            
             return engine;
            
@@ -110,7 +109,19 @@
     public void attachCallbackWire(Wire arg0) {
     }
 
-    public void attachWire(Wire arg0) {
+    public void attachWire(Wire wire) {
+        references.put(wire.getSourceUri().getFragment(), createWireProxy(wire));
+    }
+
+    protected Object createWireProxy(Wire wire) {
+        // TODO: this is completly wrong :) Need to create a proxy wraping the wire
+        Object ref;
+        try {
+            ref = wire.getTargetInstance();
+        } catch (TargetResolutionException e) {
+            throw new RuntimeException(e);
+        }
+        return ref;
     }
 
     public void attachWires(List<Wire> arg0) {
@@ -139,150 +150,4 @@
         // TODO Auto-generated method stub
         return null;
     }
-    // protected ScriptComponent(URI name,
-    // ScriptImplementation implementation,
-    // ProxyService proxyService,
-    // WorkContext workContext,
-    // URI groupId,
-    // int initLevel) {
-    // super(name, proxyService, workContext, groupId, initLevel);
-    // impl = implementation;
-    // }
-    //
-    // public TargetInvoker createTargetInvoker(String targetName, Operation
-    // operation) {
-    // return new ScriptInvoker(operation.getName(), this, scopeContainer,
-    // workContext);
-    // }
-    //
-    // @SuppressWarnings("unchecked")
-    // public InstanceWrapper<?> createInstanceWrapper() throws
-    // ObjectCreationException {
-    // try {
-    //
-    // Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
-    // // TODO: classloader?
-    //
-    // ScriptEngineManager manager = new ScriptEngineManager();
-    // ScriptEngine engine =
-    // manager.getEngineByExtension(impl.getScriptLanguage());
-    // if (engine == null) {
-    // throw new ObjectCreationException("no script engine found for language: "
-    // + impl.getScriptLanguage());
-    // }
-    //
-    // Reader reader;
-    // if (impl.getInlineSrc() == null) {
-    // URL url = impl.getClassLoader().getResource(impl.getScriptName());
-    // reader = new InputStreamReader(url.openStream());
-    // } else {
-    // reader = new StringReader(impl.getInlineSrc());
-    // }
-    //            
-    // engine.eval(reader);
-    //
-    // return new InstanceWrapperBase(engine);
-    //
-    // } catch (ScriptException e) {
-    // throw new ObjectCreationException(e);
-    // } catch (IOException e) {
-    // throw new ObjectCreationException(e);
-    // }
-    // }
-    //
-    // // TODO: move all the rest to SPI extension
-    //
-    // @Deprecated
-    // public Object createInstance() throws ObjectCreationException {
-    // throw new UnsupportedOperationException();
-    // }
-    //
-    // public Object getAssociatedTargetInstance() throws
-    // TargetResolutionException {
-    // // TODO Auto-generated method stub
-    // return null;
-    // }
-    //
-    // public Object getTargetInstance() throws TargetResolutionException {
-    // // TODO Auto-generated method stub
-    // return null;
-    // }
-    //
-    // public void attachCallbackWire(Wire wire) {
-    // // TODO Auto-generated method stub
-    //
-    // }
-    //
-    // public void attachWire(Wire wire) {
-    // assert wire.getSourceUri().getFragment() != null;
-    // String referenceName = wire.getSourceUri().getFragment();
-    // List<Wire> wireList = wires.get(referenceName);
-    // if (wireList == null) {
-    // wireList = new ArrayList<Wire>();
-    // wires.put(referenceName, wireList);
-    // }
-    // wireList.add(wire);
-    // // Member member = referenceSites.get(referenceName);
-    // // if (member != null) {
-    // // injectors.add(createInjector(member, wire));
-    // // }
-    // // // cycle through constructor param names as well
-    // // for (int i = 0; i < constructorParamNames.size(); i++) {
-    // // if (referenceName.equals(constructorParamNames.get(i))) {
-    // // ObjectFactory[] initializerFactories =
-    // instanceFactory.getInitializerFactories();
-    // // initializerFactories[i] =
-    // createWireFactory(constructorParamTypes.get(i), wire);
-    // // break;
-    // // }
-    // // }
-    // // //TODO error if ref not set on constructor or ref site
-    //
-    // }
-    //
-    //
-    // public void attachWires(List<Wire> attachWires) {
-    // assert attachWires.size() > 0;
-    // assert attachWires.get(0).getSourceUri().getFragment() != null;
-    // String referenceName = attachWires.get(0).getSourceUri().getFragment();
-    // List<Wire> wireList = wires.get(referenceName);
-    // if (wireList == null) {
-    // wireList = new ArrayList<Wire>();
-    // wires.put(referenceName, wireList);
-    // }
-    // wireList.addAll(attachWires);
-    // // Member member = referenceSites.get(referenceName);
-    // // if (member == null) {
-    // // if (constructorParamNames.contains(referenceName)) {
-    // // // injected on the constructor
-    // // throw new UnsupportedOperationException();
-    // // } else {
-    // // throw new NoAccessorException(referenceName);
-    // // }
-    // // }
-    // //
-    // // Class<?> type =
-    // attachWires.get(0).getSourceContract().getInterfaceClass();
-    // // if (type == null) {
-    // // throw new NoMultiplicityTypeException("Java interface must be
-    // specified for multiplicity", referenceName);
-    // // }
-    // // injectors.add(createMultiplicityInjector(member, type, wireList));
-    //
-    // }
-    //
-    // public List<Wire> getWires(String name) {
-    // return wires.get(name);
-    // }
-    //
-    // public TargetInvoker createTargetInvoker(String targetName,
-    // PhysicalOperationDefinition operation) {
-    // throw new UnsupportedOperationException();
-    // }
-    //
-    // protected <B> ObjectFactory<B> createWireFactory(Class<B> interfaze, Wire
-    // wire) {
-    // return new WireObjectFactory<B>(interfaze, wire, proxyService);
-    // }
-
 }

Modified: incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptImplementation.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptImplementation.java?view=diff&rev=530580&r1=530579&r2=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptImplementation.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptImplementation.java Thu Apr 19 15:30:58 2007
@@ -22,6 +22,7 @@
 
 import org.apache.tuscany.assembly.ComponentType;
 import org.apache.tuscany.assembly.Implementation;
+import org.apache.tuscany.assembly.Reference;
 import org.apache.tuscany.assembly.Service;
 import org.apache.tuscany.assembly.impl.ComponentTypeImpl;
 
@@ -69,4 +70,7 @@
         return componentType.getServices();
     }
 
+    public List<Reference> getReferences() {
+        return componentType.getReferences();
+    }
 }

Modified: incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptInvoker.java?view=diff&rev=530580&r1=530579&r2=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptInvoker.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/implementation/script/ScriptInvoker.java Thu Apr 19 15:30:58 2007
@@ -25,7 +25,6 @@
 import javax.script.ScriptException;
 
 import org.apache.tuscany.spi.Scope;
-import org.apache.tuscany.spi.component.AtomicComponent;
 import org.apache.tuscany.spi.component.ComponentException;
 import org.apache.tuscany.spi.component.InstanceWrapper;
 import org.apache.tuscany.spi.component.InvalidConversationSequenceException;
@@ -44,13 +43,13 @@
     protected Object clazz;
     protected String operationName;
 
-    private final AtomicComponent<T> component;
+    private final ScriptComponent component;
     private final ScopeContainer scopeContainer;
     protected InstanceWrapper<T> target;
     protected boolean stateless;
 
     public ScriptInvoker(String operationName,
-                         AtomicComponent component,
+                         ScriptComponent component,
                          ScopeContainer scopeContainer,
                          WorkContext workContext) {
 
@@ -62,6 +61,7 @@
         // TODO: support script classes
     }
 
+    @SuppressWarnings("unchecked")
     public Object invokeTarget(Object payload, short sequence, WorkContext workContext) throws InvocationTargetException {
         Object contextId = workContext.getIdentifier(scopeContainer.getScope());
         try {
@@ -91,6 +91,7 @@
         }
     }
 
+    @SuppressWarnings("unchecked")
     @Override
     public ScriptInvoker clone() throws CloneNotSupportedException {
         try {
@@ -105,6 +106,7 @@
     /**
      * Resolves the target service instance or returns a cached one
      */
+    @SuppressWarnings("unchecked")
     protected InstanceWrapper<T> getInstance(short sequence, Object contextId) throws TargetException {
         switch (sequence) {
         case NONE:

Added: incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/HelloWorldTarget.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/HelloWorldTarget.java?view=auto&rev=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/HelloWorldTarget.java (added)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/HelloWorldTarget.java Thu Apr 19 15:30:58 2007
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package org.apache.tuscany.implementation.script.itests.references;
+
+import org.apache.tuscany.implementation.script.itests.helloworld.HelloWorld;
+
+public class HelloWorldTarget implements HelloWorld {
+
+    public String sayHello(String s) {
+        return "Hello " + s;
+    }
+
+}

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/HelloWorldTarget.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/HelloWorldTarget.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/JavaScriptReferenceTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/JavaScriptReferenceTestCase.java?view=auto&rev=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/JavaScriptReferenceTestCase.java (added)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/JavaScriptReferenceTestCase.java Thu Apr 19 15:30:58 2007
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.implementation.script.itests.references;
+
+import org.apache.tuscany.implementation.script.itests.helloworld.AbstractHelloWorldTestCase;
+
+public class JavaScriptReferenceTestCase extends AbstractHelloWorldTestCase {
+    // super class does it all getting composite based on this class name
+}

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/JavaScriptReferenceTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/java/org/apache/tuscany/implementation/script/itests/references/JavaScriptReferenceTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite?view=auto&rev=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite (added)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite Thu Apr 19 15:30:58 2007
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           name="JavaScriptReference">
+
+    <component name="ClientComponent">
+		<implementation.java class="org.apache.tuscany.implementation.script.itests.helloworld.HelloWorldProxy"/>
+        <reference name="delegate" target="ReferenceComponent"></reference>
+    </component>
+
+    <component name="ReferenceComponent">
+        <implementation.script script="org/apache/tuscany/implementation/script/itests/references/reference.js"/>
+        <reference name="ref" target="TargetComponent"></reference>
+    </component>
+
+    <component name="TargetComponent">
+		<implementation.java class="org.apache.tuscany.implementation.script.itests.references.HelloWorldTarget"/>
+    </component>
+
+</composite>

Added: incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType?view=auto&rev=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType (added)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType Thu Apr 19 15:30:58 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance">
+
+  <service name="HelloWorldService">
+      <interface.java interface="org.apache.tuscany.implementation.script.itests.helloworld.HelloWorld" />
+  </service>
+
+  <reference name="ref">
+      <interface.java interface="org.apache.tuscany.implementation.script.itests.helloworld.HelloWorld" />
+  </reference>
+
+</componentType>              
+       
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js?view=auto&rev=530580
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js (added)
+++ incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js Thu Apr 19 15:30:58 2007
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+ 
+function sayHello(s) {
+   return ref.sayHello(s);
+}
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/modules/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js
------------------------------------------------------------------------------
    svn:eol-style = native



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