public class InMemoryDataSourceRepository extends java.lang.Object implements DataSourceRepository
| Constructor and Description |
|---|
InMemoryDataSourceRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear already registered datasources
|
void |
init(java.util.Properties properties)
Initialization with given properties
|
boolean |
isInitialized()
Explicitly check for init
|
javax.sql.DataSource |
lookUp(java.lang.String name)
Get a DataSource from Local store
|
void |
register(DataSourceInformation dataSourceInformation)
Keep DataSource in the Local store.
|
void |
unRegister(java.lang.String name)
Removing datasource
|
public void register(DataSourceInformation dataSourceInformation)
register in interface DataSourceRepositorydataSourceInformation - the information describing a data sourceDataSourceRepository.register(DataSourceInformation)public void unRegister(java.lang.String name)
DataSourceRepositoryunRegister in interface DataSourceRepositoryname - name of the datasource to be removedpublic javax.sql.DataSource lookUp(java.lang.String name)
lookUp in interface DataSourceRepositoryname - Name of the DataSource to be looked upDataSourceRepository.lookUp(String)public void init(java.util.Properties properties)
DataSourceRepositoryinit in interface DataSourceRepositoryproperties - configuration propertiespublic boolean isInitialized()
DataSourceRepositoryisInitialized in interface DataSourceRepositorypublic void clear()
DataSourceRepositoryclear in interface DataSourceRepositoryCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.