diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-22 11:19:30 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-22 11:19:30 -0230 |
commit | 4db3e73ce821b142d0f139e30bf81a13db92ed95 (patch) | |
tree | 7742182c3816cd40b99f5b77d9d48a39c9b9953c /java/demo/Ice/plugin/HelloPluginI.java | |
parent | Bug 3912 - fixed windows build for new plugin demo (diff) | |
download | ice-4db3e73ce821b142d0f139e30bf81a13db92ed95.tar.bz2 ice-4db3e73ce821b142d0f139e30bf81a13db92ed95.tar.xz ice-4db3e73ce821b142d0f139e30bf81a13db92ed95.zip |
Bug 3912 - added regular plugin to plugin demo
Diffstat (limited to 'java/demo/Ice/plugin/HelloPluginI.java')
-rw-r--r-- | java/demo/Ice/plugin/HelloPluginI.java | 34 |
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; +} |