summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/introducing-tours/src
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/travelsample/contributions/introducing-tours/src')
-rw-r--r--sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java (renamed from sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/ShoppingCart.java)6
-rw-r--r--sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/TripBookingImpl.java (renamed from sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/TripBooking.java)9
-rw-r--r--sandbox/travelsample/contributions/introducing-tours/src/main/resources/tours.composite4
3 files changed, 12 insertions, 7 deletions
diff --git a/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/ShoppingCart.java b/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java
index db551501e1..7d2fe8f951 100644
--- a/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/ShoppingCart.java
+++ b/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java
@@ -16,13 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.tuscanyscatours;
+package com.tuscanyscatours.impl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
+import com.tuscanyscatours.Checkout;
+import com.tuscanyscatours.Updates;
-public class ShoppingCart implements Checkout, Updates {
+public class ShoppingCartImpl implements Checkout, Updates {
private static List<String> bookedTrips = new ArrayList<String>();
public void makePayment(BigDecimal amount, String cardInfo) {
diff --git a/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/TripBooking.java b/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/TripBookingImpl.java
index e64d60545e..cd1573380c 100644
--- a/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/TripBooking.java
+++ b/sandbox/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/TripBookingImpl.java
@@ -16,13 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.tuscanyscatours;
+package com.tuscanyscatours.impl;
+import com.goodvaluetrips.Trips;
+import com.tuscanyscatours.Bookings;
+import com.tuscanyscatours.Updates;
import org.osoa.sca.annotations.Reference;
-public class TripBooking implements Bookings {
+public class TripBookingImpl implements Bookings {
@Reference
- protected com.goodvaluetrips.Trips mytrips;
+ protected Trips mytrips;
@Reference
protected Updates cart;
diff --git a/sandbox/travelsample/contributions/introducing-tours/src/main/resources/tours.composite b/sandbox/travelsample/contributions/introducing-tours/src/main/resources/tours.composite
index f166a1635d..6d47793aa4 100644
--- a/sandbox/travelsample/contributions/introducing-tours/src/main/resources/tours.composite
+++ b/sandbox/travelsample/contributions/introducing-tours/src/main/resources/tours.composite
@@ -22,7 +22,7 @@
name="Tours">
<component name="TripBooking">
- <implementation.java class="com.tuscanyscatours.TripBooking" />
+ <implementation.java class="com.tuscanyscatours.impl.TripBookingImpl" />
<service name="Bookings">
<interface.java interface="com.tuscanyscatours.Bookings" />
</service>
@@ -35,7 +35,7 @@
</component>
<component name="ShoppingCart">
- <implementation.java class="com.tuscanyscatours.ShoppingCart"/>
+ <implementation.java class="com.tuscanyscatours.impl.ShoppingCartImpl"/>
<service name="Checkout">
<interface.java interface="com.tuscanyscatours.Checkout" />
</service>