summaryrefslogtreecommitdiff
path: root/java/src/IceSSL/PluginFactory.java
diff options
context:
space:
mode:
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);
+ }
+}