summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/builder/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-05-21 21:42:44 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-05-21 21:42:44 +0000
commit0ccd301d0df5e325d7ca1000cd876215bd6dd28c (patch)
tree7da04ac1c1faa9357f1cbc3ecfd5c6e657ea6d50 /sca-java-2.x/trunk/modules/builder/src
parent5f3b3807faf0bcc90669298ec18f54daae512383 (diff)
Popluate the callback endpoints for endpoint references
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@947190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/builder/src')
-rw-r--r--sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java
index 261909c52e..9938a054c5 100644
--- a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java
+++ b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java
@@ -659,6 +659,15 @@ public class EndpointReferenceBuilderImpl {
endpointRef.setComponent(component);
endpointRef.setReference(reference);
endpointRef.setUnresolved(unresolved);
+
+ // [rfeng] Populate the callback endpoints
+ if (reference.getCallbackService() != null) {
+ List<Endpoint> callbackEndpoints = reference.getCallbackService().getEndpoints();
+ if (!callbackEndpoints.isEmpty()) {
+ // [rfeng] FIXME: how to select the callback endpoints?
+ endpointRef.setCallbackEndpoint(callbackEndpoints.get(0));
+ }
+ }
return endpointRef;
} // end method createEndpointRef