From 3db096b9f3b635cd63aceccf75faf93bd4659f5b Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 11 Jul 2011 10:33:39 +0000 Subject: TUSCANY-3871 - provide a simple API for getting at the delegate information when then endpoint or endpoint reference is configured with an SCA binding git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1145112 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/tuscany/sca/runtime/RuntimeEndpoint.java | 7 +++++++ .../org/apache/tuscany/sca/runtime/RuntimeEndpointReference.java | 8 ++++++++ 2 files changed, 15 insertions(+) (limited to 'sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca') diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpoint.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpoint.java index 92ae31d626..b45def3e95 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpoint.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpoint.java @@ -92,4 +92,11 @@ public interface RuntimeEndpoint extends Endpoint, Invocable, Serializable { */ public RuntimeEndpointReference getAsyncServerCallback(); + /** + * Get/Set the endpoint that this endpoint delegates to. This only + * comes into play when this endpoint is configured with an SCA bindng + */ + RuntimeEndpoint getDelegateEndpoint(); + void setDelegateEndpoint(RuntimeEndpoint delegateEndpoint); + } diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpointReference.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpointReference.java index 81ef1acd9e..dbdd458543 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpointReference.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpointReference.java @@ -85,4 +85,12 @@ public interface RuntimeEndpointReference extends EndpointReference, Invocable, * of the endpoint until the endpoint reference has been resolved. */ public void createAsyncCallbackEndpoint(); + + /** + * Get/Set the endpoint reference that this endpoint reference delegates to. This only + * comes into play when this endpoint reference is configured with an SCA bindng + */ + RuntimeEndpointReference getDelegateEndpointReference(); + void setDelegateEndpointReference(RuntimeEndpointReference delegateEndpointReference); + } -- cgit v1.2.3