summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/library/LibraryI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2004-04-09 23:21:15 +0000
committerBernard Normier <bernard@zeroc.com>2004-04-09 23:21:15 +0000
commit0dcad3e212de5e8560e57c1a3d2f04909ebe7513 (patch)
tree412366d59303c0c4a90d281e50f78c39775db31d /cpp/demo/Freeze/library/LibraryI.cpp
parentEach request now has its own set of object factories. (diff)
downloadice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.tar.bz2
ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.tar.xz
ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.zip
Updated Freeze Evictor with new facets
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.cpp')
-rw-r--r--cpp/demo/Freeze/library/LibraryI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp
index 6b9bd30ef4f..19d9276f24f 100644
--- a/cpp/demo/Freeze/library/LibraryI.cpp
+++ b/cpp/demo/Freeze/library/LibraryI.cpp
@@ -203,7 +203,7 @@ LibraryI::createBook(const ::BookDescription& description, const Ice::Current& c
// internal error). The exception is currently ignored.
//
Ice::Identity ident = createBookIdentity(description.isbn);
- _evictor->createObject(ident, bookI);
+ _evictor->add(bookI, ident);
//
// Add the isbn number to the authors map.
@@ -328,7 +328,7 @@ LibraryI::remove(const BookDescription& description)
// This can throw EvictorDeactivatedException (which indicates
// an internal error). The exception is currently ignored.
//
- _evictor->destroyObject(createBookIdentity(description.isbn));
+ _evictor->remove(createBookIdentity(description.isbn));
}
catch(const Freeze::DatabaseException& ex)
{