summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java16
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java2
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java9
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java2
4 files changed, 27 insertions, 2 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java
index 5aa26e16cf..0ffb921d31 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java
@@ -126,5 +126,21 @@ public interface Endpoint extends Base, PolicySubject, Cloneable, Serializable {
* @param registry
*/
void setExtensionPointRegistry(ExtensionPointRegistry registry);
+
+ /**
+ * Returns true if this endpoint represents a serivce that is not
+ * running in this JVM
+ *
+ * @return true if the endpoint is remote
+ */
+ boolean isRemoteReference();
+
+ /**
+ * Set true if this endpoint represents a serivce that is not
+ * running in this JVM
+ *
+ * @param isRemoteReference set to true if the endpoint is remote
+ */
+ void setIsRemoteReference(boolean isRemoteReference);
}
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java
index 204719e7e4..c0cc41c82d 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java
@@ -146,7 +146,7 @@ public interface EndpointReference extends Base, PolicySubject, Cloneable, Seria
*
* @return true if the endpoint is remote
*/
- boolean getIsRemoteReference();
+ boolean isRemoteReference();
/**
* Set true if this endpoint reference refers to an endpoint that
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
index 1974113d1c..185d4bfa9c 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
@@ -51,6 +51,7 @@ public class EndpointImpl implements Endpoint {
protected List<EndpointReference> callbackEndpointReferences = new ArrayList<EndpointReference>();
protected List<PolicySet> policySets = new ArrayList<PolicySet>();
protected List<Intent> requiredIntents = new ArrayList<Intent>();
+ protected boolean isRemoteReference = false;
protected EndpointImpl(ExtensionPointRegistry registry) {
this.registry = registry;
@@ -186,4 +187,12 @@ public class EndpointImpl implements Endpoint {
public void setExtensionPointRegistry(ExtensionPointRegistry registry) {
this.registry = registry;
}
+
+ public boolean isRemoteReference() {
+ return isRemoteReference;
+ }
+
+ public void setIsRemoteReference(boolean isRemoteReference) {
+ this.isRemoteReference = isRemoteReference;
+ }
}
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
index aad851eb3b..dfc9480862 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
@@ -201,7 +201,7 @@ public class EndpointReferenceImpl implements EndpointReference {
this.uri = uri;
}
- public boolean getIsRemoteReference() {
+ public boolean isRemoteReference() {
return isRemoteReference;
}