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/06/14 01:07:43 UTC
svn commit: r547058 - in
/incubator/tuscany/java/sca/samples/spi-implementation-pojo: ./ src/
src/main/ src/main/java/ src/main/java/sample/ src/main/resources/
src/main/resources/META-INF/ src/main/resources/META-INF/services/
src/test/ src/test/java/...
Author: antelder
Date: Wed Jun 13 16:07:41 2007
New Revision: 547058
URL: http://svn.apache.org/viewvc?view=rev&rev=547058
Log:
Add simple spi sample
Added:
incubator/tuscany/java/sca/samples/spi-implementation-pojo/ (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/META-INF/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/META-INF/services/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java (with props)
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/resources/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/resources/helloworld/
incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Jun 13 16:07:41 2007
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml Wed Jun 13 16:07:41 2007
@@ -0,0 +1,59 @@
+<?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.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca</artifactId>
+ <version>1.0-incubating-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+ <artifactId>sample-spi-implementation-java</artifactId>
+ <name>Apache Tuscany Java Implementation SPI Sample</name>
+
+ <repositories>
+ <repository>
+ <id>apache.incubator</id>
+ <url>http://people.apache.org/repo/m2-incubating-repository</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-extension-helper</artifactId>
+ <version>1.0-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+
+</project>
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java Wed Jun 13 16:07:41 2007
@@ -0,0 +1,35 @@
+/*
+ * 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 sample;
+
+
+public class JavaImplementation {
+
+ private String className;
+
+ public String getClass_() {
+ return className;
+ }
+
+ public void setClass_(String className) {
+ this.className = className;
+ }
+
+}
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java Wed Jun 13 16:07:41 2007
@@ -0,0 +1,46 @@
+/*
+ * 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 sample;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.sca.assembly.ComponentType;
+import org.apache.tuscany.sca.runtime.RuntimeComponent;
+import org.apache.tuscany.sca.spi.ImplementationActivator;
+import org.apache.tuscany.sca.spi.InvokerFactory;
+import org.osoa.sca.Constants;
+
+public class JavaImplementationActivator implements ImplementationActivator<JavaImplementation> {
+
+ private static final QName IMPLEMENTATION_JAVA = new QName(Constants.SCA_NS, "implementation.java");
+
+ public InvokerFactory createInvokerFactory(RuntimeComponent rc, ComponentType ct, JavaImplementation implementation) {
+ return new JavaInvokerFactory(rc, ct, implementation);
+ }
+
+ public Class<JavaImplementation> getImplementationClass() {
+ return JavaImplementation.class;
+ }
+
+ public QName getSCDLQName() {
+ return IMPLEMENTATION_JAVA;
+ }
+
+}
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java Wed Jun 13 16:07:41 2007
@@ -0,0 +1,59 @@
+/*
+ * 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 sample;
+
+import java.lang.reflect.Method;
+
+import org.apache.tuscany.sca.interfacedef.Operation;
+import org.apache.tuscany.sca.invocation.Invoker;
+import org.apache.tuscany.sca.invocation.Message;
+import org.osoa.sca.ServiceRuntimeException;
+
+public class JavaInvoker implements Invoker {
+
+ protected Class clazz;
+ protected Object instance;
+ protected Operation operation;
+
+ public JavaInvoker(Class clazz, Object instance, Operation operation) {
+ this.clazz = clazz;
+ this.instance = instance;
+ this.operation = operation;
+ }
+
+ public Message invoke(Message msg) {
+ try {
+ msg.setBody(getMethod().invoke(instance, (Object[])msg.getBody()));
+ } catch (Exception e) {
+ throw new ServiceRuntimeException(e);
+ }
+ return msg;
+ }
+
+ protected Method getMethod() {
+ for (Method method : clazz.getMethods()) {
+ if (method.getName().equals(operation.getName())) {
+ return method;
+ }
+ }
+ throw new ServiceRuntimeException("no method found for operation: " + operation.getName());
+ }
+
+}
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java Wed Jun 13 16:07:41 2007
@@ -0,0 +1,47 @@
+/*
+ * 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 sample;
+
+import org.apache.tuscany.sca.assembly.ComponentType;
+import org.apache.tuscany.sca.interfacedef.Operation;
+import org.apache.tuscany.sca.invocation.Invoker;
+import org.apache.tuscany.sca.runtime.RuntimeComponent;
+import org.apache.tuscany.sca.spi.InvokerFactory;
+import org.osoa.sca.ServiceRuntimeException;
+
+public class JavaInvokerFactory implements InvokerFactory {
+
+ protected Object instance;
+ protected Class clazz;
+
+ public JavaInvokerFactory(RuntimeComponent rc, ComponentType ct, JavaImplementation implementation) {
+ try {
+ this.clazz = Class.forName(implementation.getClass_());
+ this.instance = clazz.newInstance();
+ } catch (Exception e) {
+ throw new ServiceRuntimeException(e);
+ }
+ }
+
+ public Invoker createInvoker(Operation operation) {
+ return new JavaInvoker(clazz, instance, operation);
+ }
+
+}
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator Wed Jun 13 16:07:41 2007
@@ -0,0 +1,18 @@
+# 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.
+# Implementation class for the ExtensionActivator
+sample.JavaImplementationActivator
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java Wed Jun 13 16:07:41 2007
@@ -0,0 +1,26 @@
+/*
+ * 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 helloworld;
+
+public interface HelloWorld {
+
+ String sayHello(String name);
+
+}
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java Wed Jun 13 16:07:41 2007
@@ -0,0 +1,28 @@
+/*
+ * 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 helloworld;
+
+public class HelloWorldImpl implements HelloWorld {
+
+ public String sayHello(String name) {
+ return "Hello " + name;
+ }
+
+}
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java Wed Jun 13 16:07:41 2007
@@ -0,0 +1,35 @@
+/*
+ * 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 helloworld;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ */
+public class HelloWorldTestCase extends TestCase {
+
+ public void testHello() throws Exception {
+ SCADomain scaDomain = SCADomain.newInstance("helloworld/helloworld.composite");
+ HelloWorld helloworld = scaDomain.getService(HelloWorld.class, "HelloWorldComponent");
+ assertEquals("Hello petra", helloworld.sayHello("petra"));
+ scaDomain.close();
+ }
+}
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite?view=auto&rev=547058
==============================================================================
--- incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite (added)
+++ incubator/tuscany/java/sca/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite Wed Jun 13 16:07:41 2007
@@ -0,0 +1,28 @@
+<?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"
+ targetNamespace="http://test/helloworld"
+ name="helloworld">
+
+ <component name="HelloWorldComponent">
+ <implementation.java class="helloworld.HelloWorldImpl" />
+ </component>
+
+</composite>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org