diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
commit | 1126cea5189d035934f98822078f2ae23d9739ec (patch) | |
tree | 759430bdf201db72abddcd9bb83bed6fb034a6d2 /java/demo/Freeze/library/RunParser.java | |
parent | Code cleanup (diff) | |
download | ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2 ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz ice-1126cea5189d035934f98822078f2ae23d9739ec.zip |
Added propertyToProxy
Diffstat (limited to 'java/demo/Freeze/library/RunParser.java')
-rw-r--r-- | java/demo/Freeze/library/RunParser.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/java/demo/Freeze/library/RunParser.java b/java/demo/Freeze/library/RunParser.java index 2e51a0f6758..af50118f2d8 100644 --- a/java/demo/Freeze/library/RunParser.java +++ b/java/demo/Freeze/library/RunParser.java @@ -63,16 +63,7 @@ class RunParser } } - Ice.Properties properties = communicator.getProperties(); - String refProperty = "Library.Proxy"; - String ref = properties.getProperty(refProperty); - if(ref.length() == 0) - { - System.err.println(appName + ": property `" + refProperty + "' not set"); - return 1; - } - - Ice.ObjectPrx base = communicator.stringToProxy(ref); + Ice.ObjectPrx base = communicator.propertyToProxy("Library.Proxy"); LibraryPrx library = LibraryPrxHelper.checkedCast(base); if(library == null) { |