Class DataSourceInformationRepository
- java.lang.Object
-
- org.apache.synapse.commons.datasource.DataSourceInformationRepository
-
public class DataSourceInformationRepository extends Object
Keep and maintainDataSourceInformation
-
-
Constructor Summary
Constructors Constructor Description DataSourceInformationRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataSourceInformation(DataSourceInformation dataSourceInformation)
Adding a DataSourceInformation instancevoid
configure(Properties configurationProperties)
Configuring DataSourceInformationRepositoryIterator<DataSourceInformation>
getAllDataSourceInformation()
Returns allDataSourceInformation
s in the repositoryDataSourceInformation
getDataSourceInformation(String name)
Get an existingDataSourceInformation
instance for the given nameDataSourceInformationRepositoryListener
getRepositoryListener()
Gets the existingDataSourceInformationRepositoryListener
DataSourceInformation
removeDataSourceInformation(String name)
Removing a DataSourceInformation instance by namevoid
removeRepositoryListener()
Remove existingDataSourceInformationRepositoryListener
void
setRepositoryListener(DataSourceInformationRepositoryListener listener)
Sets aDataSourceInformationRepositoryListener
instance
-
-
-
Method Detail
-
configure
public void configure(Properties configurationProperties)
Configuring DataSourceInformationRepository- Parameters:
configurationProperties
- properties to be used for configure
-
addDataSourceInformation
public void addDataSourceInformation(DataSourceInformation dataSourceInformation)
Adding a DataSourceInformation instance- Parameters:
dataSourceInformation
-DataSourceInformation
instance
-
getDataSourceInformation
public DataSourceInformation getDataSourceInformation(String name)
Get an existingDataSourceInformation
instance 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
public DataSourceInformation removeDataSourceInformation(String name)
Removing a DataSourceInformation instance by name- Parameters:
name
- Name of the DataSourceInformation to be removed- Returns:
- removed DataSourceInformation instance
-
getAllDataSourceInformation
public Iterator<DataSourceInformation> getAllDataSourceInformation()
Returns allDataSourceInformation
s in the repository- Returns:
- List of
DataSourceInformation
s
-
setRepositoryListener
public void setRepositoryListener(DataSourceInformationRepositoryListener listener)
Sets aDataSourceInformationRepositoryListener
instance- Parameters:
listener
-DataSourceInformationRepositoryListener
instance
-
removeRepositoryListener
public void removeRepositoryListener()
Remove existingDataSourceInformationRepositoryListener
-
getRepositoryListener
public DataSourceInformationRepositoryListener getRepositoryListener()
Gets the existingDataSourceInformationRepositoryListener
- Returns:
- DataSourceInformationRepositoryListener that have been registered
-
-