public class DataSourceRegistryImpl extends Object implements DataSourceRegistry
| Constructor and Description |
|---|
DataSourceRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource(String name)
Gets a named datasource from the registry.
|
Set<String> |
getDataSourceNames() |
Map<String,DataSource> |
getDataSources()
Returns all registered datasources.
|
void |
register(String name,
DataSource dataSource)
Registers a datasource by name.
|
DataSource |
unregister(String name)
Unregisters a datasource.
|
public DataSource getDataSource(String name)
DataSourceRegistrygetDataSource in interface DataSourceRegistryname - the name of the datasource.public Map<String,DataSource> getDataSources()
DataSourceRegistrygetDataSources in interface DataSourceRegistrypublic void register(String name, DataSource dataSource)
DataSourceRegistryregister in interface DataSourceRegistryname - the ame of the datasource.dataSource - the datasource to be registered.public DataSource unregister(String name)
DataSourceRegistryunregister in interface DataSourceRegistryname - the datasource nameCopyright © 2007-2013 Metaform Systems.