public class DataConnectorFactory extends Object
Modifier and Type | Method and Description |
---|---|
static DataConnector |
getDataConnector(String type)
Returns a data connector given its type.
|
static void |
registerDataConnector(String type,
DataConnector dConn)
Register a new data connector.
|
public static DataConnector getDataConnector(String type)
type
- the data connector type. Either one of DataConnector.TYPE enum values or a user-defined one.public static void registerDataConnector(String type, DataConnector dConn)
type
- the data connector type. Either one of DataConnector.TYPE enum values or a user-defined one.dConn
- data connector. Please note that data connectors are used as singleton.Plealog Software - 2003-2017