1 // 2 // Copyright (c) ZeroC, Inc. All rights reserved. 3 // 4 5 package com.zeroc.IceSSL; 6 7 /** 8 * Plug-in factories must implement this interface. 9 **/ 10 public class PluginFactory implements com.zeroc.Ice.PluginFactory 11 { 12 /** 13 * Returns a new plug-in. 14 * 15 * @param communicator The communicator for the plug-in. 16 * @param name The name of the plug-in. 17 * @param args The arguments that are specified in the plug-in's configuration. 18 * 19 * @return The new plug-in. <code>null</code> can be returned to indicate 20 * that a general error occurred. Alternatively, <code>create</code> can throw 21 * PluginInitializationException to provide more detailed information. 22 **/ 23 @Override 24 public com.zeroc.Ice.Plugin create(com.zeroc.Ice.Communicator communicator, String name, String[] args)25 create(com.zeroc.Ice.Communicator communicator, String name, String[] args) 26 { 27 return new PluginI(communicator); 28 } 29 } 30