summaryrefslogtreecommitdiff
path: root/java/test/Ice/dispatcher/TestI.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/dispatcher/TestI.java')
-rw-r--r--java/test/Ice/dispatcher/TestI.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/test/Ice/dispatcher/TestI.java b/java/test/Ice/dispatcher/TestI.java
index dcda8254fd0..204ef6a4820 100644
--- a/java/test/Ice/dispatcher/TestI.java
+++ b/java/test/Ice/dispatcher/TestI.java
@@ -22,20 +22,21 @@ public class TestI extends _TestIntfDisp
}
}
- TestI()
+ TestI(Dispatcher dispatcher)
{
+ _dispatcher = dispatcher;
}
public void
op(Ice.Current current)
{
- test(Dispatcher.isDispatcherThread());
+ test(_dispatcher.isDispatcherThread());
}
public void
opWithPayload(byte[] seq, Ice.Current current)
{
- test(Dispatcher.isDispatcherThread());
+ test(_dispatcher.isDispatcherThread());
}
public void
@@ -43,4 +44,6 @@ public class TestI extends _TestIntfDisp
{
current.adapter.getCommunicator().shutdown();
}
+
+ private Dispatcher _dispatcher;
}