summaryrefslogtreecommitdiff
path: root/java/demo/Ice/value/ObjectFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/demo/Ice/value/ObjectFactory.java')
-rw-r--r--java/demo/Ice/value/ObjectFactory.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/java/demo/Ice/value/ObjectFactory.java b/java/demo/Ice/value/ObjectFactory.java
deleted file mode 100644
index 02182af54bf..00000000000
--- a/java/demo/Ice/value/ObjectFactory.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2015 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 ObjectFactory implements Ice.ObjectFactory
-{
- @Override
- public Ice.Object
- create(String type)
- {
- if(type.equals("::Demo::Printer"))
- {
- return new PrinterI();
- }
-
- if(type.equals("::Demo::DerivedPrinter"))
- {
- return new DerivedPrinterI();
- }
-
- if(type.equals("::Demo::ClientPrinter"))
- {
- return new ClientPrinterI();
- }
-
- assert(false);
- return null;
- }
-
- @Override
- public void
- destroy()
- {
- // Nothing to do
- }
-}