diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-28 15:02:18 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-28 15:02:18 +0000 |
commit | 514181bdd232345dcdc2430201fc25ecf2c07991 (patch) | |
tree | b21316621200961b1e8af464fce876440f9bf624 /sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/ConfigURI.java | |
parent | d8a718b9e51d78096c42dbdd2f385518ec21bf74 (diff) |
Update to allow the client to share this as a subclass
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@904113 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/ConfigURI.java')
-rw-r--r-- | sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/ConfigURI.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/ConfigURI.java b/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/ConfigURI.java index 191005eafd..066ff187db 100644 --- a/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/ConfigURI.java +++ b/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/ConfigURI.java @@ -59,6 +59,10 @@ public class ConfigURI { }
private void parseURI(String uri) {
+ if (uri.startsWith("tuscanyClient:")) {
+ uri = uri.replace("tuscanyClient:", "tuscany:");
+ }
+
if (!uri.startsWith("tuscany:")) {
throw new IllegalArgumentException("Config URI must start with 'tuscany:'");
}
|