Class DataSourceRepositoryManager
java.lang.Object
org.apache.synapse.commons.datasource.DataSourceRepositoryManager
- All Implemented Interfaces:
DataSourceInformationRepositoryListener
public class DataSourceRepositoryManager
extends Object
implements DataSourceInformationRepositoryListener
Manages data sources defined in the synapse. This is an observer of the DataSourceInformationRepository
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceRepositoryManager(InMemoryDataSourceRepository inMemoryDataSourceRepository, JNDIBasedDataSourceRepository jndiBasedDataSourceRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataSourceInformation(DataSourceInformation dataSourceInformation) Event when adding a DataSourceInformationvoidclear()Clear all DataSource RepositoriesgetDataSource(String name) Find a DataSource using given namevoidreConfigure(Properties confProperties) Event when re-configuring the DataSourceInformationRepositoryvoidremoveDataSourceInformation(DataSourceInformation dataSourceInformation) Event when removing a DataSourceInformation instance
-
Constructor Details
-
DataSourceRepositoryManager
public DataSourceRepositoryManager(InMemoryDataSourceRepository inMemoryDataSourceRepository, JNDIBasedDataSourceRepository jndiBasedDataSourceRepository)
-
-
Method Details
-
getDataSource
Find a DataSource using given name- Parameters:
name- Name of the DataSource to be found- Returns:
- DataSource if found , otherwise null
-
addDataSourceInformation
Description copied from interface:DataSourceInformationRepositoryListenerEvent when adding a DataSourceInformation- Specified by:
addDataSourceInformationin interfaceDataSourceInformationRepositoryListener- Parameters:
dataSourceInformation- added DataSourceInformation instance
-
removeDataSourceInformation
Description copied from interface:DataSourceInformationRepositoryListenerEvent when removing a DataSourceInformation instance- Specified by:
removeDataSourceInformationin interfaceDataSourceInformationRepositoryListener- Parameters:
dataSourceInformation- removed DataSourceInformation instance
-
reConfigure
Description copied from interface:DataSourceInformationRepositoryListenerEvent when re-configuring the DataSourceInformationRepository- Specified by:
reConfigurein interfaceDataSourceInformationRepositoryListener- Parameters:
confProperties- properties used to configure DataSourceInformationRepository
-
clear
public void clear()Clear all DataSource Repositories
-