summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/value/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-20 23:48:17 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-20 23:48:17 +0000
commit05632330c6a6bb46826a47b0c295ffc455e7cd53 (patch)
tree8be1afb1f2d7c576a613a1d2218a2fa6d8d243e9 /cpp/demo/Ice/value/Client.cpp
parentadded missing file (diff)
downloadice-05632330c6a6bb46826a47b0c295ffc455e7cd53.tar.bz2
ice-05632330c6a6bb46826a47b0c295ffc455e7cd53.tar.xz
ice-05632330c6a6bb46826a47b0c295ffc455e7cd53.zip
ServantFactory->ObjectFactory
Diffstat (limited to 'cpp/demo/Ice/value/Client.cpp')
-rw-r--r--cpp/demo/Ice/value/Client.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/demo/Ice/value/Client.cpp b/cpp/demo/Ice/value/Client.cpp
index 87acdbef932..46474b78d14 100644
--- a/cpp/demo/Ice/value/Client.cpp
+++ b/cpp/demo/Ice/value/Client.cpp
@@ -10,7 +10,7 @@
#include <Ice/Ice.h>
#include <Value.h>
-#include <ServantFactory.h>
+#include <ObjectFactory.h>
using namespace std;
@@ -58,7 +58,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
initial->printer(printer, printerProxy);
}
- catch(const Ice::NoServantFactoryException& ex)
+ catch(const Ice::NoObjectFactoryException& ex)
{
cout << "==> " << ex << endl;
}
@@ -69,8 +69,8 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
<< "[press enter]\n";
cin.getline(&c, 1);
- Ice::ServantFactoryPtr factory = new ServantFactory;
- communicator->addServantFactory(factory, "::Printer");
+ Ice::ObjectFactoryPtr factory = new ObjectFactory;
+ communicator->addObjectFactory(factory, "::Printer");
initial->printer(printer, printerProxy);
cout << "==> " << printer->_message << endl;
@@ -119,7 +119,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
<< "[press enter]\n";
cin.getline(&c, 1);
- communicator->addServantFactory(factory, "::DerivedPrinter");
+ communicator->addObjectFactory(factory, "::DerivedPrinter");
derivedAsBase = initial->derivedPrinter();
DerivedPrinterPtr derived = DerivedPrinterPtr::dynamicCast(derivedAsBase);