summaryrefslogtreecommitdiff
path: root/java/demo/Ice/plugin/HelloPluginI.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/demo/Ice/plugin/HelloPluginI.java')
-rw-r--r--java/demo/Ice/plugin/HelloPluginI.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/java/demo/Ice/plugin/HelloPluginI.java b/java/demo/Ice/plugin/HelloPluginI.java
new file mode 100644
index 00000000000..5e7bb161e8d
--- /dev/null
+++ b/java/demo/Ice/plugin/HelloPluginI.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.
+//
+// **********************************************************************
+
+import Demo.*;
+
+public class HelloPluginI implements Ice.Plugin
+{
+ public
+ HelloPluginI(Ice.Communicator communicator)
+ {
+ _communicator = communicator;
+ }
+
+ public void
+ initialize()
+ {
+ Ice.ObjectAdapter adapter = _communicator.createObjectAdapter("Hello");
+ adapter.add(new HelloI(), _communicator.stringToIdentity("hello"));
+ adapter.activate();
+ }
+
+ public void
+ destroy()
+ {
+ }
+
+ private Ice.Communicator _communicator;
+}