diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-12-17 18:26:36 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-12-17 18:26:36 +0000 |
commit | d40e4d54b0cb4b59255a3b107c491f74c179a220 (patch) | |
tree | 9d6ec8526ab4b8f765cf8f9a72eaf51a642ce6d8 /java/src/IceSSL/PluginFactory.java | |
parent | SSL changes (diff) | |
download | ice-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.java | 25 |
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); + } +} |