diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-14 15:45:33 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-14 15:45:33 +0000 |
commit | 6222ba67f2fd06e34dde842a82e553d3280acaaa (patch) | |
tree | 5ebf9d891df80d8b5fb46ab62655543048a38b9b /sandbox/travelsample/contributions/common-contribution | |
parent | f7cdb52f0e6c981a78eb4c9c4787688023685b8f (diff) |
Extend the launcher for the interaction examples based on components from the travel sample
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@784575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/contributions/common-contribution')
2 files changed, 9 insertions, 0 deletions
diff --git a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java index 020d09a0ae..097ae69e38 100644 --- a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java +++ b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/Search.java @@ -20,14 +20,18 @@ package scatours.common;
import org.osoa.sca.annotations.Callback;
+import org.osoa.sca.annotations.Conversational;
import org.osoa.sca.annotations.OneWay;
import org.osoa.sca.annotations.Remotable;
@Remotable
+@Conversational
@Callback(SearchCallback.class)
public interface Search {
TripItem[] searchSynch(TripLeg tripLeg);
@OneWay
void searchAsynch(TripLeg tripLeg);
+
+ int getPercentComplete();
}
diff --git a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java index 3f94b29676..252fb955a2 100644 --- a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java +++ b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java @@ -19,9 +19,14 @@ package scatours.common;
+import org.osoa.sca.annotations.Conversational;
+import org.osoa.sca.annotations.EndsConversation;
import org.osoa.sca.annotations.Remotable;
@Remotable
+@Conversational
public interface SearchCallback {
+ @EndsConversation
void searchResults(TripItem[] items);
+ void setPercentComplete(String searchComponent, int percentComplete);
}
|