summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-01-22 07:39:18 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-01-22 07:39:18 +0000
commit392f736e0fe08211c7023eaaee73281d9616b82e (patch)
treeafc52a02019016d6a182ca66e77a6bbef1ff8449 /sandbox/travelsample
parent41d4fd81da508de28559a54e71a901bbdb3f7834 (diff)
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
Diffstat (limited to 'sandbox/travelsample')
-rw-r--r--sandbox/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java (renamed from sandbox/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.java)6
-rw-r--r--sandbox/travelsample/contributions/buildingblocks/src/main/resources/tours-impl.composite3
2 files changed, 4 insertions, 5 deletions
diff --git a/sandbox/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.java b/sandbox/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java
index 06f93f2637..a95f01c519 100644
--- a/sandbox/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.java
+++ b/sandbox/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.goodvaluetrips.impl;
+package scatours.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";
+ // 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 @@
</component>
<component name="TripProvider">
- <implementation.java class="com.goodvaluetrips.impl.TripProviderImpl" />
- <service name="Trips" />
+ <implementation.java class="scatours.impl.TripProviderImpl" />
</component>
</composite>