summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/hotel-contribution/src/main/java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-05-31 13:07:26 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-05-31 13:07:26 +0000
commitf1891559c61043146be106bdec11a56d59e8b050 (patch)
tree9ee501a5bde240b5a4ad1d9301b49e4fe0f681e4 /sandbox/travelsample/contributions/hotel-contribution/src/main/java
parenta9ea1ca799531d693b07ab21001f869e2aa40204 (diff)
Move conversational behaviour into the care store component to make the front end simpler and allow removal of the SCA tours component if required. Also make payments work in the full app. Ad some more features to calendar and hotel to demonstrate interaction patterns
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@780423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/contributions/hotel-contribution/src/main/java')
-rw-r--r--sandbox/travelsample/contributions/hotel-contribution/src/main/java/scatours/hotel/HotelImpl.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/sandbox/travelsample/contributions/hotel-contribution/src/main/java/scatours/hotel/HotelImpl.java b/sandbox/travelsample/contributions/hotel-contribution/src/main/java/scatours/hotel/HotelImpl.java
index e4dcfbfe0a..85eb4a592b 100644
--- a/sandbox/travelsample/contributions/hotel-contribution/src/main/java/scatours/hotel/HotelImpl.java
+++ b/sandbox/travelsample/contributions/hotel-contribution/src/main/java/scatours/hotel/HotelImpl.java
@@ -36,8 +36,8 @@ import scatours.common.TripLeg;
* An implementation of the Hotel service
*/
@Scope("STATELESS")
-@Service(interfaces={Search.class, Book.class})
-public class HotelImpl implements Search, Book {
+@Service(interfaces={Search.class, Book.class, HotelManagement.class})
+public class HotelImpl implements Search, Book, HotelManagement {
private List<HotelInfo> hotels = new ArrayList<HotelInfo>();
@@ -113,4 +113,9 @@ public class HotelImpl implements Search, Book {
public String book(TripItem tripItem) {
return "hotel1";
}
+
+ public void addHotelInfo(HotelInfo hotelInfo){
+ hotels.add(hotelInfo);
+ System.out.println("Added hotel info - " + hotelInfo.getName());
+ }
}