summaryrefslogtreecommitdiff
path: root/java/src/IceSSL/PluginFactory.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-12-17 18:26:36 +0000
committerMark Spruiell <mes@zeroc.com>2004-12-17 18:26:36 +0000
commitd40e4d54b0cb4b59255a3b107c491f74c179a220 (patch)
tree9d6ec8526ab4b8f765cf8f9a72eaf51a642ce6d8 /java/src/IceSSL/PluginFactory.java
parentSSL changes (diff)
downloadice-d40e4d54b0cb4b59255a3b107c491f74c179a220.tar.bz2
ice-d40e4d54b0cb4b59255a3b107c491f74c179a220.tar.xz
ice-d40e4d54b0cb4b59255a3b107c491f74c179a220.zip
initial check-in
Diffstat (limited to 'java/src/IceSSL/PluginFactory.java')
-rw-r--r--java/src/IceSSL/PluginFactory.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/java/src/IceSSL/PluginFactory.java b/java/src/IceSSL/PluginFactory.java
new file mode 100644
index 00000000000..afd0d3ac2d3
--- /dev/null
+++ b/java/src/IceSSL/PluginFactory.java
@@ -0,0 +1,25 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 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 IceSSL;
+
+public class PluginFactory implements Ice.PluginFactory
+{
+ public Ice.Plugin
+ create(Ice.Communicator communicator, String name, String[] args)
+ {
+ if(communicator.getProperties().getPropertyAsInt("Ice.ThreadPerConnection") == 0)
+ {
+ communicator.getLogger().error("IceSSL requires Ice.ThreadPerConnection");
+ return null;
+ }
+
+ return new PluginI(communicator, name, args);
+ }
+}