public class DataSourceRepositoryManager extends 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
|
DataSource |
getDataSource(String name)
Find a DataSource using given name
|
void |
reConfigure(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 DataSource getDataSource(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(Properties confProperties)
DataSourceInformationRepositoryListener
reConfigure
in interface DataSourceInformationRepositoryListener
confProperties
- properties used to configure DataSourceInformationRepositorypublic void clear()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.