|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.commons.datasource.DataSourceRepositoryManager
public class DataSourceRepositoryManager
Manages data sources defined in the synapse. This is an observer of the DataSourceInformationRepository
Constructor Summary | |
---|---|
DataSourceRepositoryManager(InMemoryDataSourceRepository inMemoryDataSourceRepository,
JNDIBasedDataSourceRepository jndiBasedDataSourceRepository)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSourceRepositoryManager(InMemoryDataSourceRepository inMemoryDataSourceRepository, JNDIBasedDataSourceRepository jndiBasedDataSourceRepository)
Method Detail |
---|
public DataSource getDataSource(String name)
name
- Name of the DataSource to be found
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |