From 9b1d9cd5e3a51a4d03ba2dfdbf635e7b6ebc1b65 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 7 Aug 2009 13:58:25 +0000 Subject: Not included in release git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@802010 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/spi-implementation-pojo/pom.xml | 59 ----- .../src/main/java/sample/JavaImplementation.java | 35 --- .../java/sample/JavaImplementationActivator.java | 37 --- .../src/main/java/sample/JavaInvoker.java | 59 ----- .../src/main/java/sample/JavaInvokerFactory.java | 47 ---- ....apache.tuscany.sca.spi.ImplementationActivator | 18 -- .../src/test/java/helloworld/HelloWorld.java | 26 --- .../src/test/java/helloworld/HelloWorldImpl.java | 28 --- .../test/java/helloworld/HelloWorldTestCase.java | 35 --- .../test/resources/helloworld/helloworld.composite | 28 --- .../samples/store-android/.classpath | 7 - .../sca-java-1.5.1/samples/store-android/.project | 33 --- .../samples/store-android/AndroidManifest.xml | 18 -- .../samples/store-android/default.properties | 22 -- .../samples/store-android/gen/store/android/R.java | 60 ----- .../samples/store-android/res/drawable/addc.png | Bin 3391 -> 0 bytes .../samples/store-android/res/drawable/icon.png | Bin 3180 -> 0 bytes .../samples/store-android/res/drawable/rems.png | Bin 3358 -> 0 bytes .../samples/store-android/res/layout/cat_row.xml | 19 -- .../samples/store-android/res/layout/main.xml | 69 ------ .../samples/store-android/res/layout/shop_row.xml | 20 -- .../samples/store-android/res/values/strings.xml | 28 --- .../store-android/src/services/Catalog.java | 24 -- .../store-android/src/services/CatalogProxy.java | 72 ------ .../store-android/src/services/Commons.java | 31 --- .../samples/store-android/src/services/Item.java | 108 --------- .../src/services/ShoppingCartProxy.java | 89 ------- .../src/services/atom/xml/AtomXML.java | 257 --------------------- .../src/services/atom/xml/CartItemHandler.java | 142 ------------ .../src/services/json/rpc/JSONRpc.java | 63 ----- .../store-android/src/store/android/catalog.java | 250 -------------------- .../sca-java-1.5.1/samples/zipcode-jaxws/LICENSE | 205 ---------------- .../sca-java-1.5.1/samples/zipcode-jaxws/NOTICE | 6 - .../sca-java-1.5.1/samples/zipcode-jaxws/README | 77 ------ .../sca-java-1.5.1/samples/zipcode-jaxws/build.xml | 72 ------ .../sca-java-1.5.1/samples/zipcode-jaxws/pom.xml | 245 -------------------- .../java/com/example/uszip/GetInfoByAreaCode.java | 81 ------- .../example/uszip/GetInfoByAreaCodeResponse.java | 158 ------------- .../main/java/com/example/uszip/GetInfoByCity.java | 81 ------- .../com/example/uszip/GetInfoByCityResponse.java | 158 ------------- .../java/com/example/uszip/GetInfoByState.java | 81 ------- .../com/example/uszip/GetInfoByStateResponse.java | 158 ------------- .../main/java/com/example/uszip/GetInfoByZIP.java | 81 ------- .../com/example/uszip/GetInfoByZIPResponse.java | 158 ------------- .../main/java/com/example/uszip/ObjectFactory.java | 145 ------------ .../src/main/java/com/example/uszip/USZip.java | 89 ------- .../src/main/java/com/example/uszip/USZipSoap.java | 103 --------- .../main/java/com/example/uszip/package-info.java | 20 -- .../com/example/weather/ArrayOfWeatherData.java | 87 ------- .../com/example/weather/GetWeatherByPlaceName.java | 81 ------- .../weather/GetWeatherByPlaceNameResponse.java | 81 ------- .../com/example/weather/GetWeatherByZipCode.java | 81 ------- .../weather/GetWeatherByZipCodeResponse.java | 81 ------- .../java/com/example/weather/ObjectFactory.java | 118 ---------- .../main/java/com/example/weather/WeatherData.java | 219 ------------------ .../java/com/example/weather/WeatherForecast.java | 91 -------- .../com/example/weather/WeatherForecastSoap.java | 73 ------ .../java/com/example/weather/WeatherForecasts.java | 251 -------------------- .../java/com/example/weather/package-info.java | 20 -- .../src/main/java/location/LocationClient.java | 55 ----- .../src/main/java/location/USLocationImpl.java | 56 ----- .../main/java/weather/WeatherForecastClient.java | 60 ----- .../src/main/java/weather/WeatherForecastImpl.java | 43 ---- .../src/main/java/zipcode/ZipCodeClient.java | 38 --- .../src/main/java/zipcode/ZipCodeService.java | 30 --- .../src/main/java/zipcode/ZipCodeServiceImpl.java | 82 ------- .../src/main/resources/USLocation.composite | 30 --- .../src/main/resources/WeatherForecast.composite | 30 --- .../src/main/resources/ZipCode.composite | 33 --- .../test/java/zipcode/ZipCodeClientTestCase.java | 51 ---- 70 files changed, 5293 deletions(-) delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java delete mode 100644 branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite delete mode 100644 branches/sca-java-1.5.1/samples/store-android/.classpath delete mode 100644 branches/sca-java-1.5.1/samples/store-android/.project delete mode 100644 branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml delete mode 100644 branches/sca-java-1.5.1/samples/store-android/default.properties delete mode 100644 branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.png delete mode 100644 branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.png delete mode 100644 branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.png delete mode 100644 branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml delete mode 100644 branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml delete mode 100644 branches/sca-java-1.5.1/samples/store-android/res/layout/shop_row.xml delete mode 100644 branches/sca-java-1.5.1/samples/store-android/res/values/strings.xml delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/Catalog.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/CatalogProxy.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/Commons.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/Item.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/ShoppingCartProxy.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/AtomXML.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/CartItemHandler.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/services/json/rpc/JSONRpc.java delete mode 100644 branches/sca-java-1.5.1/samples/store-android/src/store/android/catalog.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/LICENSE delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/NOTICE delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/README delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/build.xml delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/pom.xml delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/LocationClient.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/USLocation.composite delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/WeatherForecast.composite delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/ZipCode.composite delete mode 100644 branches/sca-java-1.5.1/samples/zipcode-jaxws/src/test/java/zipcode/ZipCodeClientTestCase.java (limited to 'branches') diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml deleted file mode 100644 index 57f0bd40db..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5.1-SNAPSHOT - ../../pom.xml - - sample-spi-implementation-java - Apache Tuscany Java Implementation SPI Sample - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - - org.apache.tuscany.sca - tuscany-extension-helper - 1.5.1-SNAPSHOT - - - - junit - junit - 4.2 - test - - - - - - ${artifactId} - - - diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java deleted file mode 100644 index 73104c3166..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java +++ /dev/null @@ -1,35 +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; - - -public class JavaImplementation { - - private String className; - - public String getClass_() { - return className; - } - - public void setClass_(String className) { - this.className = className; - } - -} diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java deleted file mode 100644 index 43efae32ca..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java +++ /dev/null @@ -1,37 +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; - -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; - -public class JavaImplementationActivator implements ImplementationActivator { - - public Class getImplementationClass() { - return JavaImplementation.class; - } - - public InvokerFactory createInvokerFactory(RuntimeComponent rc, ComponentType ct, JavaImplementation implementation) { - return new JavaInvokerFactory(rc, ct, implementation); - } - -} diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java deleted file mode 100644 index d65d4c8e4a..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java +++ /dev/null @@ -1,59 +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; - -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()); - } - -} diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java deleted file mode 100644 index 198befa928..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.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; - -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); - } - -} diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator deleted file mode 100644 index 95ee37c1aa..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator +++ /dev/null @@ -1,18 +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 ExtensionActivator -sample.JavaImplementationActivator diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java deleted file mode 100644 index cc32929f09..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java +++ /dev/null @@ -1,26 +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 interface HelloWorld { - - String sayHello(String name); - -} diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index 02af1ccf22..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/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 HelloWorld { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java deleted file mode 100644 index 5813fda330..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java +++ /dev/null @@ -1,35 +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 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(); - } -} diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite deleted file mode 100644 index fa9cecc160..0000000000 --- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/store-android/.classpath b/branches/sca-java-1.5.1/samples/store-android/.classpath deleted file mode 100644 index 79a84816b6..0000000000 --- a/branches/sca-java-1.5.1/samples/store-android/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/store-android/.project b/branches/sca-java-1.5.1/samples/store-android/.project deleted file mode 100644 index be88b01c5a..0000000000 --- a/branches/sca-java-1.5.1/samples/store-android/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - sample-store-android - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml b/branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml deleted file mode 100644 index 4a26dd27c6..0000000000 --- a/branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.5.1/samples/store-android/default.properties b/branches/sca-java-1.5.1/samples/store-android/default.properties deleted file mode 100644 index 0a007ab5e2..0000000000 --- a/branches/sca-java-1.5.1/samples/store-android/default.properties +++ /dev/null @@ -1,22 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-3 -# apk configurations. This property allows creation of APK files with limited -# resources. For example, if your application contains many locales and -# you wish to release multiple smaller apks instead of a large one, you can -# define configuration to create apks with limited language sets. -# Format is a comma separated list of configuration names. For each -# configuration, a property will declare the resource configurations to -# include. Example: -# apk-configurations=european,northamerica -# apk-config-european=en,fr,it,de,es -# apk-config-northamerica=en,es -apk-configurations= diff --git a/branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java b/branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java deleted file mode 100644 index 2484da82dc..0000000000 --- a/branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java +++ /dev/null @@ -1,60 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package store.android; - -public final class R { - public static final class attr { - } - public static final class drawable { - public static final int addc=0x7f020000; - public static final int icon=0x7f020001; - public static final int rems=0x7f020002; - } - public static final class id { - public static final int ListView01=0x7f050001; - public static final int ListView02=0x7f050007; - public static final int btnClean=0x7f050006; - public static final int tab02=0x7f050002; - public static final int txtEmpty=0x7f050004; - public static final int txtItemC=0x7f050000; - public static final int txtItemS=0x7f050008; - public static final int txtThx=0x7f050003; - public static final int txtTotal=0x7f050005; - } - public static final class layout { - public static final int cat_row=0x7f030000; - public static final int main=0x7f030001; - public static final int shop_row=0x7f030002; - } - public static final class string { - public static final int add_entry_ko=0x7f04000f; - public static final int add_entry_ok=0x7f04000e; - public static final int alert_cancel=0x7f040013; - public static final int alert_yes=0x7f040012; - public static final int app_name=0x7f040001; - public static final int app_tag=0x7f040002; - public static final int btn_add_del1=0x7f040004; - public static final int btn_add_del2=0x7f040005; - public static final int btn_clean=0x7f040003; - public static final int del_all_ok=0x7f040014; - public static final int del_entry_ko=0x7f040011; - public static final int del_entry_ok=0x7f040010; - public static final int get_tag=0x7f04000b; - public static final int hello=0x7f040000; - public static final int howto_del=0x7f040017; - public static final int start_tag=0x7f04000c; - public static final int tab_catalog=0x7f040007; - public static final int tab_shop=0x7f040008; - public static final int title_catalog=0x7f040009; - public static final int title_order=0x7f040016; - public static final int title_shop=0x7f04000a; - public static final int title_thx=0x7f040015; - public static final int txt_empty=0x7f040006; - public static final int txt_total=0x7f04000d; - } -} diff --git a/branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.png b/branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.png deleted file mode 100644 index 17259450d8..0000000000 Binary files a/branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.png and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.png b/branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.png deleted file mode 100644 index 75024841d3..0000000000 Binary files a/branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.png and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.png b/branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.png deleted file mode 100644 index 378690fad4..0000000000 Binary files a/branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.png and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml b/branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml deleted file mode 100644 index e7f71cb0b6..0000000000 --- a/branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml b/branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml deleted file mode 100644 index 7f296e9ac0..0000000000 --- a/branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - -