diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-08 21:10:26 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-08 21:10:26 +0000 |
commit | 2a3b526e7e27cd5f9f358c2a0d8204d4804e6dba (patch) | |
tree | 34512f4b57c2c9946ca87d070f3ba2f530d48a2a /java/sca/modules/host-corba/src/main | |
parent | e28a7264f7f3b0ee2331920dbbfa750a25b64a45 (diff) |
Fix the lookup issue with SUN JDKs
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@674957 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/host-corba/src/main')
-rw-r--r-- | java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbanameURL.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbanameURL.java b/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbanameURL.java index ddfc51ca98..479e549ab6 100644 --- a/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbanameURL.java +++ b/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbanameURL.java @@ -157,6 +157,20 @@ public class CorbanameURL { public List<String> getNamePath() { return namePath; } + + public String getName() { + if (namePath != null) { + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < namePath.size(); i++) { + buf.append(namePath.get(i)); + if (i < namePath.size() - 1) { + buf.append("/"); + } + } + return buf.toString(); + } + return null; + } public void setNamePath(List<String> namePath) { this.namePath = namePath; |