From 3cf294786a4a1da99139389a473b4216ef8205c4 Mon Sep 17 00:00:00 2001 From: nash Date: Sat, 15 May 2010 15:26:34 +0000 Subject: Merge revision r944274 from trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@944665 13f79535-47bb-0310-9956-ffa450edef68 --- .../client/impl/AirportCodesClientImpl.java | 36 ------------------ .../scatours/client/impl/BookingsClientImpl.java | 36 ------------------ .../client/impl/BookingsZeroClientImpl.java | 36 ------------------ .../client/impl/CarBookingsClientImpl.java | 38 ------------------- .../scatours/client/impl/ConverterClientImpl.java | 43 ---------------------- .../client/impl/HotelOffersClientImpl.java | 36 ------------------ .../scatours/client/impl/Orders1ClientImpl.java | 36 ------------------ .../scatours/client/impl/Orders2ClientImpl.java | 38 ------------------- 8 files changed, 299 deletions(-) delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/AirportCodesClientImpl.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsClientImpl.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsZeroClientImpl.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/CarBookingsClientImpl.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/ConverterClientImpl.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/HotelOffersClientImpl.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders1ClientImpl.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders2ClientImpl.java (limited to 'sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client') diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/AirportCodesClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/AirportCodesClientImpl.java deleted file mode 100644 index 4857b25fb6..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/AirportCodesClientImpl.java +++ /dev/null @@ -1,36 +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 scatours.client.impl; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscatours.AirportCodes; - -@Service(Runnable.class) -public class AirportCodesClientImpl { - - @Reference - protected AirportCodes airportcodes; - - public void run() { - String airport = airportcodes.getAirport("AAB"); - System.out.println("AAB is the airport code for " + airport); - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsClientImpl.java deleted file mode 100644 index aa842c80f7..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsClientImpl.java +++ /dev/null @@ -1,36 +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 scatours.client.impl; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscatours.Bookings; - -@Service(Runnable.class) -public class BookingsClientImpl { - - @Reference - protected Bookings bookings; - - public void run() { - String bookingCode = bookings.newBooking("VR3MAY9", 2); - System.out.println("Booking code is " + bookingCode); - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsZeroClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsZeroClientImpl.java deleted file mode 100644 index 1fd519d5e9..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/BookingsZeroClientImpl.java +++ /dev/null @@ -1,36 +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 scatours.client.impl; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscatours.Bookings; - -@Service(Runnable.class) -public class BookingsZeroClientImpl { - - @Reference - protected Bookings bookings; - - public void run() { - String bookingCode = bookings.newBooking("DUMMY", 0); - System.out.println("Booking code is " + bookingCode); - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/CarBookingsClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/CarBookingsClientImpl.java deleted file mode 100644 index 0c78a77825..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/CarBookingsClientImpl.java +++ /dev/null @@ -1,38 +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 scatours.client.impl; - -import java.util.Date; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscatours.Cars; - -@Service(Runnable.class) -public class CarBookingsClientImpl { - - @Reference - protected Cars cars; - - public void run() { - String bookingCode = cars.bookCar(new Date(), 3, "K"); // need to FIX - System.out.println("Booking code is " + bookingCode); - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/ConverterClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/ConverterClientImpl.java deleted file mode 100644 index 5eab8f8a16..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/ConverterClientImpl.java +++ /dev/null @@ -1,43 +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 scatours.client.impl; - -import java.math.BigDecimal; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscatours.CurrencyConverter; - -@Service(Runnable.class) -public class ConverterClientImpl { - - @Reference - protected CurrencyConverter eur2jpy; - - @Reference - protected CurrencyConverter usd2gbp; - - public void run() { - BigDecimal jpy = eur2jpy.convert(new BigDecimal("1000.00")); - System.out.println("Converted EUR 1000.00 to JPY " + jpy); - BigDecimal gbp = usd2gbp.convert(new BigDecimal("1000.00")); - System.out.println("Converted USD 1000.00 to GBP " + gbp); - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/HotelOffersClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/HotelOffersClientImpl.java deleted file mode 100644 index e581273113..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/HotelOffersClientImpl.java +++ /dev/null @@ -1,36 +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 scatours.client.impl; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscahotels.HotelOffers; - -@Service(Runnable.class) -public class HotelOffersClientImpl { - - @Reference - protected HotelOffers offers; - - public void run() { - String bookingCode = offers.bookTodaysSpecial(); - System.out.println("Hotel offers booking code is " + bookingCode); - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders1ClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders1ClientImpl.java deleted file mode 100644 index af21ad3683..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders1ClientImpl.java +++ /dev/null @@ -1,36 +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 scatours.client.impl; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscatours.CustomerInfo; - -@Service(Runnable.class) -public class Orders1ClientImpl { - - @Reference - protected CustomerInfo customer; - - public void run() { - String address = customer.getBillingAddress(); - System.out.println("Customer billing address: " + address); - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders2ClientImpl.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders2ClientImpl.java deleted file mode 100644 index 41727ac621..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/main/java/scatours/client/impl/Orders2ClientImpl.java +++ /dev/null @@ -1,38 +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 scatours.client.impl; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import com.tuscanyscatours.CustomerInfo; - -@Service(Runnable.class) -public class Orders2ClientImpl { - - @Reference - protected CustomerInfo customer; - - public void run() { - String address = customer.getBillingAddress(); - System.out.println("Customer billing address: " + address); - address = customer.getDeliveryAddress(); - System.out.println("Customer delivery address: " + address); - } -} -- cgit v1.2.3