From 7c60dda128ad42687f78d62c43603bb5d9e9c263 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 16 Feb 2012 15:42:47 +0000 Subject: Delete old RC tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1245043 13f79535-47bb-0310-9956-ffa450edef68 --- .../binding-sample/META-INF/MANIFEST.MF | 17 ---- .../extending-tuscany/binding-sample/README | 8 -- .../extending-tuscany/binding-sample/pom.xml | 92 ---------------------- .../main/java/sample/binding/SampleBinding.java | 49 ------------ .../java/sample/binding/SampleBindingFactory.java | 32 -------- .../runtime/SampleBindingProviderFactory.java | 47 ----------- .../runtime/SampleReferenceBindingProvider.java | 55 ------------- .../binding/runtime/SampleReferenceInvoker.java | 53 ------------- .../runtime/SampleServiceBindingProvider.java | 57 -------------- .../binding/runtime/SampleServiceInvoker.java | 40 ---------- .../java/sample/binding/runtime/SampleStash.java | 44 ----------- ...ca.contribution.processor.StAXArtifactProcessor | 20 ----- ...any.sca.contribution.processor.ValidationSchema | 19 ----- ...che.tuscany.sca.provider.BindingProviderFactory | 20 ----- .../services/sample.binding.SampleBindingFactory | 20 ----- .../src/main/resources/binding-sample.xsd | 37 --------- .../src/test/java/helloworld/HelloWorldClient.java | 33 -------- .../src/test/java/helloworld/HelloWorldImpl.java | 28 ------- .../test/java/helloworld/HelloWorldService.java | 28 ------- .../src/test/java/test/SampleBindingTestCase.java | 52 ------------ .../src/test/resources/helloworld.composite | 39 --------- 21 files changed, 790 deletions(-) delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/README delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBinding.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleStash.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/sample.binding.SampleBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/binding-sample.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/test/SampleBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/resources/helloworld.composite (limited to 'sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample') diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/META-INF/MANIFEST.MF deleted file mode 100644 index 8b328a00be..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/META-INF/MANIFEST.MF +++ /dev/null @@ -1,17 +0,0 @@ -Manifest-Version: 1.0 -SCA-Version: 1.1 -Bundle-Name: Apache Tuscany SCA Sample Binding -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Sample Binding -Import-Package: org.apache.tuscany.sca.assembly;version="2.0.0", - org.apache.tuscany.sca.core;version="2.0.0", - org.apache.tuscany.sca.interfacedef;version="2.0.0", - org.apache.tuscany.sca.invocation;version="2.0.0", - org.apache.tuscany.sca.provider;version="2.0.0", - org.apache.tuscany.sca.runtime;version="2.0.0" -Bundle-SymbolicName: org.apache.tuscany.sca.binding.sample -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/README b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/README deleted file mode 100644 index 359c42f012..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/README +++ /dev/null @@ -1,8 +0,0 @@ -Sample Binding Extension -=============================== -This sample demonstrates how to develop a new binding type for Apache -Tuscany SCA. - -See http://tuscany.apache.org/documentation-2x/20-beta-samples-documentation.html -for more information - diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/pom.xml b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/pom.xml deleted file mode 100644 index f5077b69fd..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-samples-extending-tuscany - 2.0-Beta2 - ../pom.xml - - - sample-binding-extension - Apache Tuscany SCA Sample Binding Extension - - - - - org.apache.tuscany.sca - tuscany-assembly-xml - 2.0-Beta2 - provided - - - - org.apache.tuscany.sca - tuscany-host-http - 2.0-Beta2 - provided - - - - javax.servlet - servlet-api - 2.5 - provided - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-Beta2 - test - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-Beta2 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-Beta2 - test - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-Beta2 - test - - - - junit - junit - 4.8.1 - test - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBinding.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBinding.java deleted file mode 100644 index 174a32fce4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBinding.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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.binding; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.provider.BaseBindingImpl; - -/** - * Represents a binding to a Sample service. - */ -public class SampleBinding extends BaseBindingImpl { - - public static final QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.sample"); - - private String someAttr; - - public SampleBinding() { - } - - public QName getType() { - return TYPE; - } - - public String getSomeAttr() { - return someAttr; - } - - public void setSomeAttr(String someAttr) { - this.someAttr = someAttr; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBindingFactory.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBindingFactory.java deleted file mode 100644 index 6f4920448c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/SampleBindingFactory.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.binding; - - -/** - * Factory implementation to create Sample Models - */ -public class SampleBindingFactory { - - public SampleBinding createSampleBinding() { - return new SampleBinding(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleBindingProviderFactory.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleBindingProviderFactory.java deleted file mode 100644 index 4fb966138d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleBindingProviderFactory.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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.binding.runtime; - -import sample.binding.SampleBinding; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.provider.BindingProviderFactory; -import org.apache.tuscany.sca.provider.ReferenceBindingProvider; -import org.apache.tuscany.sca.provider.ServiceBindingProvider; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; -import org.apache.tuscany.sca.runtime.RuntimeEndpointReference; - -public class SampleBindingProviderFactory implements BindingProviderFactory { - - public SampleBindingProviderFactory(ExtensionPointRegistry extensionPoints) { - } - - public Class getModelType() { - return SampleBinding.class; - } - - public ReferenceBindingProvider createReferenceBindingProvider(RuntimeEndpointReference endpoint) { - return new SampleReferenceBindingProvider(endpoint); - } - - public ServiceBindingProvider createServiceBindingProvider(RuntimeEndpoint endpoint) { - return new SampleServiceBindingProvider(endpoint); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceBindingProvider.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceBindingProvider.java deleted file mode 100644 index b1edf6c729..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceBindingProvider.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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.binding.runtime; - -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.invocation.Invoker; -import org.apache.tuscany.sca.provider.ReferenceBindingProvider; - -public class SampleReferenceBindingProvider implements ReferenceBindingProvider { - - private EndpointReference endpoint; - private InterfaceContract contract; - - public SampleReferenceBindingProvider(EndpointReference endpoint) { - this.endpoint = endpoint; - } - - public Invoker createInvoker(Operation operation) { - return new SampleReferenceInvoker(operation, endpoint); - } - - public void start() { - } - - public void stop() { - } - - public InterfaceContract getBindingInterfaceContract() { - return contract; - } - - public boolean supportsOneWayInvocation() { - return false; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceInvoker.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceInvoker.java deleted file mode 100644 index 31cb339818..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleReferenceInvoker.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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.binding.runtime; - -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.invocation.Invoker; -import org.apache.tuscany.sca.invocation.Message; - -public class SampleReferenceInvoker implements Invoker { - - protected Operation operation; - protected EndpointReference endpoint; - - public SampleReferenceInvoker(Operation operation, EndpointReference endpoint) { - this.operation = operation; - this.endpoint = endpoint; - } - - public Message invoke(Message msg) { - try { - - return doInvoke(msg); - - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - public Message doInvoke(Message msg) { - // Add some code here to make an invocation over the Sample binding protocol - // For this sample we'll just get it from the static stash - SampleServiceInvoker fi = SampleStash.getService(endpoint.getBinding().getURI()); - return fi.invokeService(msg); - } -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceBindingProvider.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceBindingProvider.java deleted file mode 100644 index f8aab77fde..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceBindingProvider.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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.binding.runtime; - -import sample.binding.SampleBinding; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.provider.ServiceBindingProvider; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; - -public class SampleServiceBindingProvider implements ServiceBindingProvider { - - private RuntimeEndpoint endpoint; - private InterfaceContract contract; - - public SampleServiceBindingProvider(RuntimeEndpoint endpoint) { - this.endpoint = endpoint; - } - - public void start() { - // add some code here to start the service - - // For this sample we'll just share it in a static - SampleStash.addService(endpoint.getBinding().getURI(), new SampleServiceInvoker(endpoint)); - - System.out.println("someAttr=" + ((SampleBinding)endpoint.getBinding()).getSomeAttr()); - } - - public void stop() { - SampleStash.removeService(endpoint.getBinding().getURI()); - } - - public InterfaceContract getBindingInterfaceContract() { - return contract; - } - - public boolean supportsOneWayInvocation() { - return false; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceInvoker.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceInvoker.java deleted file mode 100644 index bfbfe80966..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleServiceInvoker.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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.binding.runtime; - -import org.apache.tuscany.sca.invocation.Message; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; - -public class SampleServiceInvoker { - - private RuntimeEndpoint wire; - - public SampleServiceInvoker(RuntimeEndpoint wire) { - this.wire = wire; - } - - /** - * Send the request down the wire to invoke the service - */ - public Message invokeService(Message msg) { - return wire.invoke(msg); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleStash.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleStash.java deleted file mode 100644 index cbebe77cf6..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/java/sample/binding/runtime/SampleStash.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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.binding.runtime; - -import java.util.HashMap; -import java.util.Map; - -/** - * Simplistic static Map to share service endpoints with references - */ -public class SampleStash { - - private static Map services = new HashMap(); - - public static void addService(String uri, SampleServiceInvoker SampleServiceInvoker) { - services.put(uri, SampleServiceInvoker); - } - - public static SampleServiceInvoker getService(String uri) { - return services.get(uri); - } - - public static void removeService(String uri) { - services.remove(uri); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor deleted file mode 100644 index 91c49a69e0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor +++ /dev/null @@ -1,20 +0,0 @@ -# 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 artifact processor extension -org.apache.tuscany.sca.assembly.xml.DefaultBeanModelProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.1#binding.sample,model=sample.binding.SampleBinding,factory=sample.binding.SampleBindingFactory - diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema deleted file mode 100644 index dda33eb075..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema +++ /dev/null @@ -1,19 +0,0 @@ -# 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. -# -binding-sample.xsd - diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory deleted file mode 100644 index e6b86ac871..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory +++ /dev/null @@ -1,20 +0,0 @@ -# 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 binding extension -sample.binding.runtime.SampleBindingProviderFactory;model=sample.binding.SampleBinding - diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/sample.binding.SampleBindingFactory b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/sample.binding.SampleBindingFactory deleted file mode 100644 index ec8c4b9936..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/META-INF/services/sample.binding.SampleBindingFactory +++ /dev/null @@ -1,20 +0,0 @@ -# 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 model factory -sample.binding.SampleBindingFactory - diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/binding-sample.xsd b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/binding-sample.xsd deleted file mode 100644 index 26f4f80ea4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/main/resources/binding-sample.xsd +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldClient.java deleted file mode 100644 index bafb453a30..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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 org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorldService { - - @Reference - public HelloWorldService ref; - - public String sayHello(String name) { - return ref.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index 98989e6e49..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 HelloWorldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldService.java deleted file mode 100644 index 59b4bd0d57..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/test/SampleBindingTestCase.java b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/test/SampleBindingTestCase.java deleted file mode 100644 index f3274a7fcb..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/java/test/SampleBindingTestCase.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 test; - -import helloworld.HelloWorldService; -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class SampleBindingTestCase { - - private static Node node; - - @Test - public void testSayHello() { - HelloWorldService service = node.getService(HelloWorldService.class, "HelloWorldClient/HelloWorldService"); - Assert.assertEquals("Hello boo", service.sayHello("boo")); - } - - @BeforeClass - public static void init() throws Exception { - node = NodeFactory.newInstance().createNode("helloworld.composite").start(); - } - - @AfterClass - public static void destroy() throws Exception { - if (node != null) { - node.stop(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/resources/helloworld.composite deleted file mode 100644 index 9bb69bae65..0000000000 --- a/sca-java-2.x/tags/2.0-Beta2-RC2/samples/extending-tuscany/binding-sample/src/test/resources/helloworld.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3