diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-11-25 15:05:41 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-11-25 15:05:41 +0100 |
commit | 2fca2c1309c4991b21ff956709068122f19eef4a (patch) | |
tree | b90e6fe1450508f5ce2962e21627a4535414e1a6 /java/test/Ice/ami/TestControllerI.java | |
parent | Update depends for SQL directories (diff) | |
download | ice-2fca2c1309c4991b21ff956709068122f19eef4a.tar.bz2 ice-2fca2c1309c4991b21ff956709068122f19eef4a.tar.xz ice-2fca2c1309c4991b21ff956709068122f19eef4a.zip |
- Cleaned up test/Ice/operations test
- Added test/Ice/ami test
- sent callback is now always called
Diffstat (limited to 'java/test/Ice/ami/TestControllerI.java')
-rw-r--r-- | java/test/Ice/ami/TestControllerI.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/java/test/Ice/ami/TestControllerI.java b/java/test/Ice/ami/TestControllerI.java new file mode 100644 index 00000000000..1c18c58adae --- /dev/null +++ b/java/test/Ice/ami/TestControllerI.java @@ -0,0 +1,34 @@ +// ********************************************************************** +// +// 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.ami; + +import test.Ice.ami.Test._TestIntfControllerDisp; + +class TestControllerI extends _TestIntfControllerDisp +{ + public void + holdAdapter(Ice.Current current) + { + _adapter.hold(); + } + + public void + resumeAdapter(Ice.Current current) + { + _adapter.activate(); + } + + public + TestControllerI(Ice.ObjectAdapter adapter) + { + _adapter = adapter; + } + + final private Ice.ObjectAdapter _adapter; +} |