diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-10-28 16:46:18 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-10-28 16:46:18 +0000 |
commit | 8912351af0f585a2882156ecd49f326e6011d823 (patch) | |
tree | ad7bc59e47838d998b1b8d315d82d613fc1e8888 /java/demo/Freeze/bench/Client.java | |
parent | Fixed incorrect property. (diff) | |
download | ice-8912351af0f585a2882156ecd49f326e6011d823.tar.bz2 ice-8912351af0f585a2882156ecd49f326e6011d823.tar.xz ice-8912351af0f585a2882156ecd49f326e6011d823.zip |
factory is no longer necessary
Diffstat (limited to 'java/demo/Freeze/bench/Client.java')
-rw-r--r-- | java/demo/Freeze/bench/Client.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/java/demo/Freeze/bench/Client.java b/java/demo/Freeze/bench/Client.java index fef8a09c7fc..f136c77303b 100644 --- a/java/demo/Freeze/bench/Client.java +++ b/java/demo/Freeze/bench/Client.java @@ -469,9 +469,6 @@ class TestApp extends Ice.Application System.out.println("Struct1Class1Map"); Struct1Class1MapTest(); - MyFactory factory = new MyFactory(); - factory.install(communicator()); - System.out.println("Struct1ObjectMap"); Struct1ObjectMapTest(); @@ -492,35 +489,6 @@ class TestApp extends Ice.Application } } - static private class MyFactory extends Ice.LocalObjectImpl implements Ice.ObjectFactory - { - public Ice.Object - create(String type) - { - if(type.equals("::Class1")) - { - return new Class1(); - } - else if(type.equals("::Class2")) - { - return new Class2(); - } - throw new RuntimeException(); - } - - public void - destroy() - { - } - - public void - install(Ice.Communicator communicator) - { - communicator.addObjectFactory(this, "::Class1"); - communicator.addObjectFactory(this, "::Class2"); - } - } - private Freeze.Connection _connection; private int _repetitions = 10000; private StopWatch _watch = new StopWatch(); |