|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.module.ModuleFactory
org.marketcetera.client.ClientModuleFactory
public class ClientModuleFactory
The provider / factory that creates Client Module instance.
The factory assumes that the Client is already initialized if
the URL is not set. Otherwise if the URL is set and the Client is
not initialized,
the factory will initialize the Client before
creating the module instance.
The factory has the following characteristics.
| Provider URN: | metc:server:system |
|---|---|
| Cardinality: | Singleton |
| InstanceURN: | metc:server:system:single |
| Auto-Instantiated: | No |
| Auto-Started: | Yes |
| Instantiation Arguments: | None |
| Management Interface | ClientModuleFactoryMXBean |
| Module Type | ClientModule |
| Field Summary | |
|---|---|
static ModuleURN |
INSTANCE_URN
|
| Constructor Summary | |
|---|---|
ClientModuleFactory()
Creates an instance. |
|
| Method Summary | |
|---|---|
Module |
create(Object[] inParameters)
|
String |
getHostname()
The server hostname. |
String |
getIDPrefix()
The string that should be prefixed to any orderIDs generated by the client based on IDs issued by the server. |
int |
getPort()
The port number of the server. |
String |
getURL()
The Server URL to connect to. |
String |
getUsername()
The username to use when connecting to the server. |
void |
setHostname(String inHostname)
Sets the server host name. |
void |
setIDPrefix(String inIDPrefix)
Sets the string that should be prefixed to any orderIDs generated by the client based on IDs issued by the server. |
void |
setPassword(String inPassword)
Sets the password to use when connecting to the server. |
void |
setPort(int inPort)
Sets the server port number. |
void |
setURL(String inURL)
Sets the Server URL to connect to. |
void |
setUsername(String inUsername)
Sets the user name to use when connecting to the server. |
| Methods inherited from class org.marketcetera.module.ModuleFactory |
|---|
getParameterTypes, getProviderDescription, getProviderURN, isAutoInstantiate, isMultipleInstances |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ModuleURN INSTANCE_URN
| Constructor Detail |
|---|
public ClientModuleFactory()
| Method Detail |
|---|
public Module create(Object[] inParameters)
throws ModuleCreationException
create in class ModuleFactoryModuleCreationExceptionpublic String getURL()
ClientModuleFactoryMXBean
getURL in interface ClientModuleFactoryMXBeanpublic void setURL(String inURL)
ClientModuleFactoryMXBean
setURL in interface ClientModuleFactoryMXBeaninURL - the Server URLpublic String getUsername()
ClientModuleFactoryMXBean
getUsername in interface ClientModuleFactoryMXBeanpublic void setUsername(String inUsername)
ClientModuleFactoryMXBean
setUsername in interface ClientModuleFactoryMXBeaninUsername - the username.public void setPassword(String inPassword)
ClientModuleFactoryMXBean
setPassword in interface ClientModuleFactoryMXBeaninPassword - the password.public String getHostname()
ClientModuleFactoryMXBean
getHostname in interface ClientModuleFactoryMXBeanpublic void setHostname(String inHostname)
ClientModuleFactoryMXBean
setHostname in interface ClientModuleFactoryMXBeaninHostname - the server hostname.public int getPort()
ClientModuleFactoryMXBean
getPort in interface ClientModuleFactoryMXBeanpublic void setPort(int inPort)
ClientModuleFactoryMXBean
setPort in interface ClientModuleFactoryMXBeaninPort - the server port number.public String getIDPrefix()
ClientModuleFactoryMXBean
getIDPrefix in interface ClientModuleFactoryMXBeanpublic void setIDPrefix(String inIDPrefix)
ClientModuleFactoryMXBean
setIDPrefix in interface ClientModuleFactoryMXBeaninIDPrefix - the orderID prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||