summaryrefslogtreecommitdiff
path: root/java/demo/Freeze/library/BookFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/demo/Freeze/library/BookFactory.java')
-rw-r--r--java/demo/Freeze/library/BookFactory.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/java/demo/Freeze/library/BookFactory.java b/java/demo/Freeze/library/BookFactory.java
new file mode 100644
index 00000000000..bee816bb9f0
--- /dev/null
+++ b/java/demo/Freeze/library/BookFactory.java
@@ -0,0 +1,30 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+class BookFactory implements Ice.ObjectFactory
+{
+ public Ice.Object
+ create(String type)
+ {
+ assert(type.equals("::Demo::Book"));
+ return new BookI(_library);
+ }
+
+ public void
+ destroy()
+ {
+ }
+
+ BookFactory(LibraryI library)
+ {
+ _library = library;
+ }
+
+ private LibraryI _library;
+}