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