summaryrefslogtreecommitdiff
path: root/java/demo/IceBox/hello/HelloServiceI.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-04-02 22:44:49 +0000
committerMark Spruiell <mes@zeroc.com>2002-04-02 22:44:49 +0000
commit7e6e7d8d59765b2940e56fc6dbac00daa0a57e43 (patch)
tree009c2c221c1a504a10c98b946fa55aa62286f113 /java/demo/IceBox/hello/HelloServiceI.java
parentIceBox::PrintServicesReady support added (diff)
downloadice-7e6e7d8d59765b2940e56fc6dbac00daa0a57e43.tar.bz2
ice-7e6e7d8d59765b2940e56fc6dbac00daa0a57e43.tar.xz
ice-7e6e7d8d59765b2940e56fc6dbac00daa0a57e43.zip
adding IceBox
Diffstat (limited to 'java/demo/IceBox/hello/HelloServiceI.java')
-rw-r--r--java/demo/IceBox/hello/HelloServiceI.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/java/demo/IceBox/hello/HelloServiceI.java b/java/demo/IceBox/hello/HelloServiceI.java
new file mode 100644
index 00000000000..b724ce365b3
--- /dev/null
+++ b/java/demo/IceBox/hello/HelloServiceI.java
@@ -0,0 +1,36 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+public class HelloServiceI implements IceBox.Service
+{
+ public void
+ init(String name, Ice.Communicator communicator, Ice.Properties properties, String[] args)
+ throws IceBox.FailureException
+ {
+ _adapter = communicator.createObjectAdapter(name + "Adapter");
+ Ice.Object object = new HelloI(communicator);
+ _adapter.add(object, Ice.Util.stringToIdentity("hello"));
+ _adapter.activate();
+ }
+
+ public void
+ start()
+ throws IceBox.FailureException
+ {
+ }
+
+ public void
+ stop()
+ {
+ _adapter.deactivate();
+ }
+
+ private Ice.ObjectAdapter _adapter;
+}