From 392f736e0fe08211c7023eaaee73281d9616b82e Mon Sep 17 00:00:00 2001 From: nash Date: Fri, 22 Jan 2010 07:39:18 +0000 Subject: Use the scatours.impl package for the TripProviderImpl class that's part of the buildingblocks contribution git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902018 13f79535-47bb-0310-9956-ffa450edef68 --- .../com/goodvaluetrips/impl/TripProviderImpl.java | 28 ---------------------- .../main/java/scatours/impl/TripProviderImpl.java | 28 ++++++++++++++++++++++ .../src/main/resources/tours-impl.composite | 3 +-- 3 files changed, 29 insertions(+), 30 deletions(-) delete mode 100644 sandbox/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.java create mode 100644 sandbox/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java (limited to 'sandbox/travelsample') diff --git a/sandbox/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.java b/sandbox/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.java deleted file mode 100644 index 06f93f2637..0000000000 --- a/sandbox/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.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 com.goodvaluetrips.impl; - -import com.goodvaluetrips.Trips; - -public class TripProviderImpl implements Trips { - public String checkAvailability(String trip, int people) { - // call non-SCA code to reserve trip and return booking code - return "6R98Y"; - } -} diff --git a/sandbox/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java b/sandbox/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java new file mode 100644 index 0000000000..a95f01c519 --- /dev/null +++ b/sandbox/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package scatours.impl; + +import com.goodvaluetrips.Trips; + +public class TripProviderImpl implements Trips { + public String checkAvailability(String trip, int people) { + // scaffolded test code to return an arbitrary booking code + return "7S09Z"; + } +} diff --git a/sandbox/travelsample/contributions/buildingblocks/src/main/resources/tours-impl.composite b/sandbox/travelsample/contributions/buildingblocks/src/main/resources/tours-impl.composite index 31dd7d474e..1d82858f22 100644 --- a/sandbox/travelsample/contributions/buildingblocks/src/main/resources/tours-impl.composite +++ b/sandbox/travelsample/contributions/buildingblocks/src/main/resources/tours-impl.composite @@ -29,7 +29,6 @@ - - + -- cgit v1.2.3