com.adventnet.adaptors.clients
Class ClientFactory
java.lang.Object
|
+--com.adventnet.adaptors.clients.ClientFactory
- public class ClientFactory
- extends java.lang.Object
This Factory class is used to create Adaptor Clients such as RMI,IIOP and HTTP
|
Field Summary |
(package private) static java.lang.Class |
clientClazz
|
(package private) static java.lang.String |
newClient
|
|
Method Summary |
(package private) static void |
()
|
static void |
addClient(java.lang.String protocol,
java.lang.String className)
Method to add a particular client to the client factory. |
static Client |
createClient(java.lang.String protocol)
Creates the connector client according to the protocol. |
static Log |
getLogger()
Method to be used by the clients to log messages. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
newClient
static java.lang.String newClient
clientClazz
static java.lang.Class clientClazz
static void ()
getLogger
public static Log getLogger()
- Method to be used by the clients to log messages.
createClient
public static Client createClient(java.lang.String protocol)
- Creates the connector client according to the protocol. The supported protocols
are SimpleClient.PROTOCOL_RMI and SimpleClient.PROTOCOL_IIOP
- Parameters:
protocol - the protocol name.- Returns:
- the Client object according to the protocol
addClient
public static void addClient(java.lang.String protocol,
java.lang.String className)
- Method to add a particular client to the client factory.
This method should be called before calling the
createClient method.
- Parameters:
protocol - Unique key that identifies the clientclassName - class name of the client