summaryrefslogtreecommitdiff
path: root/java/test/Ice/classLoader/InitialI.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-09-04 12:34:41 -0700
committerMark Spruiell <mes@zeroc.com>2009-09-04 12:34:41 -0700
commita86b114d82c678b49ab2b43c16abff1f8239d5d6 (patch)
treedb649f2762d87a991de02b2c2c641029a01cac85 /java/test/Ice/classLoader/InitialI.java
parentConverted demo projects to VS2008 (diff)
downloadice-a86b114d82c678b49ab2b43c16abff1f8239d5d6.tar.bz2
ice-a86b114d82c678b49ab2b43c16abff1f8239d5d6.tar.xz
ice-a86b114d82c678b49ab2b43c16abff1f8239d5d6.zip
bug 4196 - add class loader to InitializationData
Diffstat (limited to 'java/test/Ice/classLoader/InitialI.java')
-rw-r--r--java/test/Ice/classLoader/InitialI.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/java/test/Ice/classLoader/InitialI.java b/java/test/Ice/classLoader/InitialI.java
new file mode 100644
index 00000000000..2b8b87caefd
--- /dev/null
+++ b/java/test/Ice/classLoader/InitialI.java
@@ -0,0 +1,51 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2009 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.
+//
+// **********************************************************************
+
+package test.Ice.classLoader;
+
+import test.Ice.classLoader.Test.AbstractClass;
+import test.Ice.classLoader.Test.ConcreteClass;
+import test.Ice.classLoader.Test.E;
+import test.Ice.classLoader.Test._InitialDisp;
+
+public final class InitialI extends _InitialDisp
+{
+ public
+ InitialI(Ice.ObjectAdapter adapter)
+ {
+ _adapter = adapter;
+ }
+
+ public ConcreteClass
+ getConcreteClass(Ice.Current current)
+ {
+ return new ConcreteClass();
+ }
+
+ public AbstractClass
+ getAbstractClass(Ice.Current current)
+ {
+ return new AbstractClassI();
+ }
+
+ public void
+ throwException(Ice.Current current)
+ throws E
+ {
+ throw new E();
+ }
+
+ public void
+ shutdown(Ice.Current current)
+ {
+ _adapter.getCommunicator().shutdown();
+ }
+
+ private Ice.ObjectAdapter _adapter;
+}