summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/Adapter.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-12-20 19:18:30 +0000
committerBernard Normier <bernard@zeroc.com>2006-12-20 19:18:30 +0000
commit4ca122b8ff02bab36e073624f7c03933946484be (patch)
treedd433534031789f06c7d9685fb51d26ccb66bfdd /java/src/IceGridGUI/Application/Adapter.java
parentDon't add again IceBox adapter proeprties if they already exist. (diff)
downloadice-4ca122b8ff02bab36e073624f7c03933946484be.tar.bz2
ice-4ca122b8ff02bab36e073624f7c03933946484be.tar.xz
ice-4ca122b8ff02bab36e073624f7c03933946484be.zip
Fixed various Ice.OA issues; added iceVersion
Diffstat (limited to 'java/src/IceGridGUI/Application/Adapter.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/Adapter.java21
1 files changed, 8 insertions, 13 deletions
diff --git a/java/src/IceGridGUI/Application/Adapter.java b/java/src/IceGridGUI/Application/Adapter.java
index 340c0452e69..b2c7455f6d4 100755
--- a/java/src/IceGridGUI/Application/Adapter.java
+++ b/java/src/IceGridGUI/Application/Adapter.java
@@ -103,11 +103,10 @@ class Adapter extends TreeNode implements DescriptorHolder
return new AdapterEditor();
}
-
public void destroy()
{
- removeProperty(_id, "Endpoints");
- removeProperty(_id, "PublishedEndpoints");
+ removeProperty("Ice.OA." + _descriptor.name + ".Endpoints");
+ removeProperty("Ice.OA." + _descriptor.name + ".PublishedEndpoints");
((Communicator)_parent).getAdapters().destroyChild(this);
}
@@ -155,7 +154,9 @@ class Adapter extends TreeNode implements DescriptorHolder
{
java.util.List attributes = new java.util.LinkedList();
attributes.add(createAttribute("name", _descriptor.name));
- attributes.add(createAttribute("endpoints", getProperty("Endpoints")));
+ String oaPrefix = "Ice.OA." + _descriptor.name + ".";
+
+ attributes.add(createAttribute("endpoints", getProperty(oaPrefix + "Endpoints")));
attributes.add(createAttribute("id", _descriptor.id));
if(_descriptor.registerProcess)
{
@@ -197,26 +198,20 @@ class Adapter extends TreeNode implements DescriptorHolder
String getProperty(String property)
{
- return ((Communicator)_parent).getProperty(_descriptor.name + "." + property);
+ return ((Communicator)_parent).getProperty(property);
}
String lookupPropertyValue(String val)
{
return ((Communicator)_parent).lookupPropertyValue(val);
}
- void setProperty(String name, String property, String newValue)
- {
- ((Communicator)_parent).setProperty(name + "." + property, newValue);
- }
void setProperty(String property, String newValue)
{
((Communicator)_parent).setProperty(property, newValue);
}
- void removeProperty(String name, String property)
+ void removeProperty(String property)
{
- ((Communicator)_parent).removeProperty(name + "." + property);
+ ((Communicator)_parent).removeProperty(property);
}
-
-
String getDefaultAdapterId()
{
return getDefaultAdapterId(_id);