public class DataSourceFactoryRegistry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static DataSourceFactoryRegistry |
instance |
protected Map<String,DataSourceFactory> |
instancesRegistry |
| Modifier | Constructor and Description |
|---|---|
protected |
DataSourceFactoryRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DataSourceFactory factory)
Adds a new
DataSourceFactory to the registry. |
protected void |
addInstancesInEnv() |
boolean |
exists(String factoryId) |
DataSourceFactory |
get(String factoryId)
Retrieves the specified
DataSourceFactory. |
static DataSourceFactoryRegistry |
getInstance() |
void |
remove(String factoryId)
Removes the specified
DataSourceFactory. |
protected static DataSourceFactoryRegistry instance
protected Map<String,DataSourceFactory> instancesRegistry
public static DataSourceFactoryRegistry getInstance()
protected void addInstancesInEnv()
public void add(DataSourceFactory factory)
DataSourceFactory to the registry.factory - the DataSourceFactory to add.public DataSourceFactory get(String factoryId)
DataSourceFactory.factoryId - the DataSourceFactory id.DataSourceFactory if found, null otherwise.public boolean exists(String factoryId)
public void remove(String factoryId)
DataSourceFactory.factoryId - the DataSourceFactory id.Copyright © 2019. All Rights Reserved.