|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.client.ClientManager
public final class ClientManager
Abstraction that manages the initialization of the Client and provides an easy way to get to its singleton instance.
| Method Summary | |
|---|---|
static Client |
getInstance()
Returns the Client instance after it has been initialized via init(ClientParameters) |
static void |
init(ClientParameters inParameter)
Initializes the connection to the server. |
static boolean |
isInitialized()
Returns true if the client is initialized, false if it's not. |
static void |
setClientFactory(ClientFactory inFactory)
Sets the ClientFactory to use to create the Client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void init(ClientParameters inParameter)
throws ConnectionException,
ClientInitException
getInstance().
inParameter - The parameters to connect the client. Cannot be null.
ConnectionException - if there were errors connecting
to the server.
ClientInitException - if the client is already initialized.
public static void setClientFactory(ClientFactory inFactory)
throws ClientInitException
ClientFactory to use to create the Client.
inFactory - a ClientFactory value
ClientInitException - if the client is already initialized.
public static Client getInstance()
throws ClientInitException
init(ClientParameters)
ClientInitException - if the client is not initialized.public static boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||