From e6e918ef537c4aa9802ca27b92e1dc566c2cffda Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 16 Feb 2012 15:38:34 +0000 Subject: Delete old RC tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1245033 13f79535-47bb-0310-9956-ffa450edef68 --- .../META-INF/maven/archetype-metadata.xml | 61 ---------------------- .../archetype-resources/META-INF/MANIFEST.MF | 17 ------ .../src/main/resources/archetype-resources/pom.xml | 59 --------------------- .../java/__implementationName__Implementation.java | 52 ------------------ ..._implementationName__ImplementationFactory.java | 35 ------------- ...implementationName__BindingProviderFactory.java | 50 ------------------ ...plementationName__ReferenceBindingProvider.java | 58 -------------------- .../__implementationName__ReferenceInvoker.java | 56 -------------------- ...implementationName__ServiceBindingProvider.java | 60 --------------------- .../__implementationName__ServiceInvoker.java | 43 --------------- .../java/runtime/__implementationName__Stash.java | 47 ----------------- .../__package__.__bindingName__BindingFactory | 20 ------- ...ca.contribution.processor.StAXArtifactProcessor | 20 ------- ...any.sca.contribution.processor.ValidationSchema | 19 ------- ...che.tuscany.sca.provider.BindingProviderFactory | 20 ------- .../resources/implementation-__artifactId__.xsd | 37 ------------- .../src/test/java/helloworld/HelloWorldClient.java | 36 ------------- .../src/test/java/helloworld/HelloWorldImpl.java | 31 ----------- .../test/java/helloworld/HelloWorldService.java | 31 ----------- .../java/test/__bindingName__BindingTestCase.java | 55 ------------------- .../src/test/resources/helloworld.composite | 39 -------------- 21 files changed, 846 deletions(-) delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__Implementation.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__ImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__BindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__Stash.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/implementation-__artifactId__.xsd delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/resources/helloworld.composite (limited to 'sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main') diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 8b1b08b4bb..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/*.* - - - - src/test/java - - **/*.java - - - - src/test/resources - - **/*.* - - - - META-INF - - MANIFEST.MF - - - - diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/META-INF/MANIFEST.MF deleted file mode 100644 index 5880433840..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/META-INF/MANIFEST.MF +++ /dev/null @@ -1,17 +0,0 @@ -Manifest-Version: 1.0 -SCA-Version: 1.1 -Bundle-Name: Apache Tuscany SCA ${implementationName} Implementation -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 ${implementationName} 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.implementation.${artifactId} -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 1adc4eb49c..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-Beta3 - ../pom.xml - - - binding-${artifactId} - ${groupId} - ${version} - Apache Tuscany SCA ${implementationName} Implementation Extension - - - - - org.apache.tuscany.sca - tuscany-assembly-xml - 2.0-Beta3 - provided - - - - org.apache.tuscany.sca - tuscany-domain-node - 2.0-Beta3 - test - - - - junit - junit - 4.8.1 - test - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__Implementation.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__Implementation.java deleted file mode 100644 index d9cbdb954d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__Implementation.java +++ /dev/null @@ -1,52 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.provider.BaseBindingImpl; - -/** - * Represents a binding to a ${bindingName} service. - */ -public class ${bindingName}Binding extends BaseBindingImpl { - - public static final QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.${artifactId}"); - - private String someAttr; - - public ${bindingName}Binding() { - } - - 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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__ImplementationFactory.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__ImplementationFactory.java deleted file mode 100644 index ae1cd88745..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/__implementationName__ImplementationFactory.java +++ /dev/null @@ -1,35 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}; - - -/** - * Factory implementation to create ${bindingName} Models - */ -public class ${bindingName}BindingFactory { - - public ${bindingName}Binding create${bindingName}Binding() { - return new ${bindingName}Binding(); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__BindingProviderFactory.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__BindingProviderFactory.java deleted file mode 100644 index 93c6bf3c04..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__BindingProviderFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import ${package}.${bindingName}Binding; -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 ${bindingName}BindingProviderFactory implements BindingProviderFactory<${bindingName}Binding> { - - public ${bindingName}BindingProviderFactory(ExtensionPointRegistry extensionPoints) { - } - - public Class<${bindingName}Binding> getModelType() { - return ${bindingName}Binding.class; - } - - public ReferenceBindingProvider createReferenceBindingProvider(RuntimeEndpointReference endpoint) { - return new ${bindingName}ReferenceBindingProvider(endpoint); - } - - public ServiceBindingProvider createServiceBindingProvider(RuntimeEndpoint endpoint) { - return new ${bindingName}ServiceBindingProvider(endpoint); - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceBindingProvider.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceBindingProvider.java deleted file mode 100644 index dc2991014e..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceBindingProvider.java +++ /dev/null @@ -1,58 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.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 ${bindingName}ReferenceBindingProvider implements ReferenceBindingProvider { - - private EndpointReference endpoint; - private InterfaceContract contract; - - public ${bindingName}ReferenceBindingProvider(EndpointReference endpoint) { - this.endpoint = endpoint; - } - - public Invoker createInvoker(Operation operation) { - return new ${bindingName}ReferenceInvoker(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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceInvoker.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceInvoker.java deleted file mode 100644 index d3e2bd1812..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ReferenceInvoker.java +++ /dev/null @@ -1,56 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.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 ${bindingName}ReferenceInvoker implements Invoker { - - protected Operation operation; - protected EndpointReference endpoint; - - public ${bindingName}ReferenceInvoker(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 ${bindingName} binding protocol - // For this sample we'll just get it from the static stash - ${bindingName}ServiceInvoker fi = ${bindingName}Stash.getService(endpoint.getBinding().getURI()); - return fi.invokeService(msg); - } -} diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceBindingProvider.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceBindingProvider.java deleted file mode 100644 index 59d41091d8..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceBindingProvider.java +++ /dev/null @@ -1,60 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import ${package}.${bindingName}Binding; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.provider.ServiceBindingProvider; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; - -public class ${bindingName}ServiceBindingProvider implements ServiceBindingProvider { - - private RuntimeEndpoint endpoint; - private InterfaceContract contract; - - public ${bindingName}ServiceBindingProvider(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 - ${bindingName}Stash.addService(endpoint.getBinding().getURI(), new ${bindingName}ServiceInvoker(endpoint)); - - System.out.println("someAttr=" + ((${bindingName}Binding)endpoint.getBinding()).getSomeAttr()); - } - - public void stop() { - ${bindingName}Stash.removeService(endpoint.getBinding().getURI()); - } - - public InterfaceContract getBindingInterfaceContract() { - return contract; - } - - public boolean supportsOneWayInvocation() { - return false; - } - -} diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceInvoker.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceInvoker.java deleted file mode 100644 index 8ea20d41ed..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__ServiceInvoker.java +++ /dev/null @@ -1,43 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import org.apache.tuscany.sca.invocation.Message; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; - -public class ${bindingName}ServiceInvoker { - - private RuntimeEndpoint wire; - - public ${bindingName}ServiceInvoker(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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__Stash.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__Stash.java deleted file mode 100644 index 416a10e7b1..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/java/runtime/__implementationName__Stash.java +++ /dev/null @@ -1,47 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import java.util.HashMap; -import java.util.Map; - -/** - * Simplistic static Map to share service endpoints with references - */ -public class ${bindingName}Stash { - - private static Map services = new HashMap(); - - public static void addService(String uri, ${bindingName}ServiceInvoker ${bindingName}ServiceInvoker) { - services.put(uri, ${bindingName}ServiceInvoker); - } - - public static ${bindingName}ServiceInvoker 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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory deleted file mode 100644 index 3759b19fa0..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory +++ /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 -${package}.${bindingName}BindingFactory - diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor deleted file mode 100644 index eb49133022..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/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.${artifactId},model=${package}.${bindingName}Binding,factory=${package}.${bindingName}BindingFactory - diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema deleted file mode 100644 index c33264f2a4..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/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-${artifactId}.xsd - diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory deleted file mode 100644 index 3c0cfbc6d9..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/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 -${package}.runtime.${bindingName}BindingProviderFactory;model=${package}.${bindingName}Binding - diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/implementation-__artifactId__.xsd b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/implementation-__artifactId__.xsd deleted file mode 100644 index d0c6f62439..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/main/resources/implementation-__artifactId__.xsd +++ /dev/null @@ -1,37 +0,0 @@ -#set( $implementationNameLC = ${implementationName} ) - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java deleted file mode 100644 index de982cefc1..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,36 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index 521f6828ce..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java deleted file mode 100644 index eca0df1543..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,31 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java deleted file mode 100644 index 61847e5eda..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java +++ /dev/null @@ -1,55 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${bindingName}BindingTestCase { - - 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-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/resources/helloworld.composite b/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/resources/helloworld.composite deleted file mode 100644 index f0e6150c10..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/maven/archetypes/implementation/src/main/resources/archetype-resources/src/test/resources/helloworld.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3