diff options
author | Matthew Newhook <matthew@zeroc.com> | 2002-03-13 18:19:00 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2002-03-13 18:19:00 +0000 |
commit | c5ecc3026bff01b4ac2406df9600dff2937d4865 (patch) | |
tree | 391096a4c7a02685f7377ae685b49e41c0f4189d /java/demo/Freeze/library/BookI.java | |
parent | Updates (diff) | |
download | ice-c5ecc3026bff01b4ac2406df9600dff2937d4865.tar.bz2 ice-c5ecc3026bff01b4ac2406df9600dff2937d4865.tar.xz ice-c5ecc3026bff01b4ac2406df9600dff2937d4865.zip |
cleanup
Diffstat (limited to 'java/demo/Freeze/library/BookI.java')
-rw-r--r-- | java/demo/Freeze/library/BookI.java | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/java/demo/Freeze/library/BookI.java b/java/demo/Freeze/library/BookI.java index fc713d60b74..26f1abc4ef7 100644 --- a/java/demo/Freeze/library/BookI.java +++ b/java/demo/Freeze/library/BookI.java @@ -12,7 +12,7 @@ class BookI extends Book { // // No read/write mutexes in Java - hence use native - // syncronization. + // synchronization. // public BookDescription @@ -64,13 +64,6 @@ class BookI extends Book try { _library.remove(_description); - - // - // This can throw EvictorDeactivatedException (which - // indicates an internal error). The exception is - // currently ignored. - // - _evictor.destroyObject(createIdentity(_description.isbn)); } catch(Freeze.DBNotFoundException ex) { @@ -86,24 +79,9 @@ class BookI extends Book } } - public static Ice.Identity - createIdentity(String isbn) - { - // - // Note that the identity category is important since the - // locator was installed for the category 'book'. - // - Ice.Identity ident = new Ice.Identity(); - ident.category = "book"; - ident.name = isbn; - - return ident; - } - - BookI(LibraryI library, Freeze.Evictor evictor) + BookI(LibraryI library) { _library = library; - _evictor = evictor; // // This could be avoided by having two constructors (one for @@ -114,5 +92,4 @@ class BookI extends Book } private LibraryI _library; - private Freeze.Evictor _evictor; } |