summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/Service.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-05-04 16:15:21 +0000
committerBernard Normier <bernard@zeroc.com>2006-05-04 16:15:21 +0000
commit87ed29e743f1c53e01878259a2c8ba1b352d3933 (patch)
treecf7de9d5ef8ac0362839c6122cad9d5217867e7f /java/src/IceGridGUI/Application/Service.java
parentFixed typo. (diff)
downloadice-87ed29e743f1c53e01878259a2c8ba1b352d3933.tar.bz2
ice-87ed29e743f1c53e01878259a2c8ba1b352d3933.tar.xz
ice-87ed29e743f1c53e01878259a2c8ba1b352d3933.zip
Better PropertySets support
Diffstat (limited to 'java/src/IceGridGUI/Application/Service.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/Service.java24
1 files changed, 6 insertions, 18 deletions
diff --git a/java/src/IceGridGUI/Application/Service.java b/java/src/IceGridGUI/Application/Service.java
index 7a4baa28d21..132d334798e 100755
--- a/java/src/IceGridGUI/Application/Service.java
+++ b/java/src/IceGridGUI/Application/Service.java
@@ -37,16 +37,7 @@ class Service extends Communicator implements Cloneable, TemplateInstance
ServiceDescriptor copy = (ServiceDescriptor)sd.clone();
copy.adapters = Adapter.copyDescriptors(copy.adapters);
copy.dbEnvs = DbEnv.copyDescriptors(copy.dbEnvs);
-
- //
- // Update to properties is not atomic because of Adapter endpoints
- // (and possibly other properties set through a PropertiesHolder)
- //
- //
- // TODO: BENOIT: Add support for property set.
- //
- copy.propertySet = new PropertySetDescriptor(new String[0],
- (java.util.LinkedList)copy.propertySet.properties.clone());
+ copy.propertySet = PropertySet.copyDescriptor(copy.propertySet);
return copy;
}
@@ -175,13 +166,12 @@ class Service extends Communicator implements Cloneable, TemplateInstance
ServiceInstanceDescriptor sd = (ServiceInstanceDescriptor)savedDescriptor;
_instanceDescriptor.template = sd.template;
_instanceDescriptor.parameterValues = sd.parameterValues;
+ _instanceDescriptor.propertySet = sd.propertySet;
+
if(_instanceDescriptor.descriptor != null)
{
- //
- // TODO: BENOIT: Add support for property set.
- //
_instanceDescriptor.descriptor.propertySet =
- new PropertySetDescriptor(new String[0], sd.descriptor.propertySet.properties);
+ sd.descriptor.propertySet;
_instanceDescriptor.descriptor.description = sd.descriptor.description;
_instanceDescriptor.descriptor.name = sd.descriptor.name;
@@ -448,10 +438,8 @@ class Service extends Communicator implements Cloneable, TemplateInstance
{
writer.writeElement("description", _serviceDescriptor.description);
}
- //
- // TODO: BENOIT: Add support for property set.
- //
- writeProperties(writer, _serviceDescriptor.propertySet.properties);
+
+ writePropertySet(writer, "", _serviceDescriptor.propertySet);
_adapters.write(writer);
_dbEnvs.write(writer);
writer.writeEndTag("service");