public class DataSourceRepositoryManager extends java.lang.Object implements DataSourceInformationRepositoryListener
Constructor and Description |
---|
DataSourceRepositoryManager(InMemoryDataSourceRepository inMemoryDataSourceRepository,
JNDIBasedDataSourceRepository jndiBasedDataSourceRepository) |
Modifier and Type | Method and Description |
---|---|
void |
addDataSourceInformation(DataSourceInformation dataSourceInformation)
Event when adding a DataSourceInformation
|
void |
clear()
Clear all DataSource Repositories
|
javax.sql.DataSource |
getDataSource(java.lang.String name)
Find a DataSource using given name
|
void |
reConfigure(java.util.Properties confProperties)
Event when re-configuring the DataSourceInformationRepository
|
void |
removeDataSourceInformation(DataSourceInformation dataSourceInformation)
Event when removing a DataSourceInformation instance
|
public DataSourceRepositoryManager(InMemoryDataSourceRepository inMemoryDataSourceRepository, JNDIBasedDataSourceRepository jndiBasedDataSourceRepository)
public javax.sql.DataSource getDataSource(java.lang.String name)
name
- Name of the DataSource to be foundpublic void addDataSourceInformation(DataSourceInformation dataSourceInformation)
DataSourceInformationRepositoryListener
addDataSourceInformation
in interface DataSourceInformationRepositoryListener
dataSourceInformation
- added DataSourceInformation instancepublic void removeDataSourceInformation(DataSourceInformation dataSourceInformation)
DataSourceInformationRepositoryListener
removeDataSourceInformation
in interface DataSourceInformationRepositoryListener
dataSourceInformation
- removed DataSourceInformation instancepublic void reConfigure(java.util.Properties confProperties)
DataSourceInformationRepositoryListener
reConfigure
in interface DataSourceInformationRepositoryListener
confProperties
- properties used to configure DataSourceInformationRepositorypublic void clear()
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.