Class DataSourceInformationRepository
java.lang.Object
org.apache.synapse.commons.datasource.DataSourceInformationRepository
Keep and maintain
DataSourceInformation-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataSourceInformation(DataSourceInformation dataSourceInformation) Adding a DataSourceInformation instancevoidconfigure(Properties configurationProperties) Configuring DataSourceInformationRepositoryReturns allDataSourceInformations in the repositoryGet an existingDataSourceInformationinstance for the given nameGets the existingDataSourceInformationRepositoryListenerRemoving a DataSourceInformation instance by namevoidRemove existingDataSourceInformationRepositoryListenervoidSets aDataSourceInformationRepositoryListenerinstance
-
Constructor Details
-
DataSourceInformationRepository
public DataSourceInformationRepository()
-
-
Method Details
-
configure
Configuring DataSourceInformationRepository- Parameters:
configurationProperties- properties to be used for configure
-
addDataSourceInformation
Adding a DataSourceInformation instance- Parameters:
dataSourceInformation-DataSourceInformationinstance
-
getDataSourceInformation
Get an existingDataSourceInformationinstance for the given name- Parameters:
name- Name of the DataSourceInformation to be returned- Returns:
- DataSourceInformation instance if the are any with given name, otherwise , returns null
-
removeDataSourceInformation
Removing a DataSourceInformation instance by name- Parameters:
name- Name of the DataSourceInformation to be removed- Returns:
- removed DataSourceInformation instance
-
getAllDataSourceInformation
Returns allDataSourceInformations in the repository- Returns:
- List of
DataSourceInformations
-
setRepositoryListener
Sets aDataSourceInformationRepositoryListenerinstance- Parameters:
listener-DataSourceInformationRepositoryListenerinstance
-
removeRepositoryListener
public void removeRepositoryListener()Remove existingDataSourceInformationRepositoryListener -
getRepositoryListener
Gets the existingDataSourceInformationRepositoryListener- Returns:
- DataSourceInformationRepositoryListener that have been registered
-