summaryrefslogtreecommitdiff
path: root/java/demo/IceBox/hello/HelloServiceI.java
diff options
context:
space:
mode:
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;
+}