blob: b5bbe9776fcbccdc27a919f43b3c4fa9095f8402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// **********************************************************************
//
// Copyright (c) 2003-2014 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 IceWS;
/**
* 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.
**/
@Override
public Ice.Plugin create(Ice.Communicator communicator, String name, String[] args)
{
return new PluginI(communicator);
}
}
|