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.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/java/src/IceSSL/PluginFactory.java b/java/src/IceSSL/PluginFactory.java
new file mode 100644
index 00000000000..4914f0752ce
--- /dev/null
+++ b/java/src/IceSSL/PluginFactory.java
@@ -0,0 +1,33 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2011 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;
+
+/**
+ * Plug-in factories must implement this interface.
+ **/
+public class PluginFactory implements Ice.PluginFactory
+{
+ /**
+ * Returns a new plug-in.
+ *
+ * @param communicator The communicator for the plug-in.
+ * @param name The name of the plug-in.
+ * @param args The arguments that are specified in the plug-in's configuration.
+ *
+ * @return The new plug-in. <code>null</code> can be returned to indicate
+ * that a general error occurred. Alternatively, <code>create</code> can throw
+ * {@link PluginInitializationException} to provide more detailed information.
+ **/
+ public Ice.Plugin
+ create(Ice.Communicator communicator, String name, String[] args)
+ {
+ return new PluginI(communicator);
+ }
+}