org.apache.synapse.commons.datasource
Class DataSourceInformationRepository

java.lang.Object
  extended by org.apache.synapse.commons.datasource.DataSourceInformationRepository

public class DataSourceInformationRepository
extends Object

Keep and maintain DataSourceInformations


Constructor Summary
DataSourceInformationRepository()
           
 
Method Summary
 void addDataSourceInformation(DataSourceInformation dataSourceInformation)
          Adding a DataSourceInformation instance
 Iterator<DataSourceInformation> getAllDataSourceInformation()
          Returns all DataSourceInformations in the repository
 DataSourceInformation getDataSourceInformation(String name)
          Get a existing a DataSourceInformation instance by name
 DataSourceInformationRepositoryListener getRepositoryListener()
          Gets existing DataSourceInformationRepositoryListener
 DataSourceInformation removeDataSourceInformation(String name)
          Removing a DataSourceInformation instance by name
 void removeRepositoryListener()
          Remove existing DataSourceInformationRepositoryListener
 void setConfigurationProperties(Properties congurationProperties)
          Configuring DataSourceInformationRepository
 void setRepositoryListener(DataSourceInformationRepositoryListener listener)
          Sets a DataSourceInformationRepositoryListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceInformationRepository

public DataSourceInformationRepository()
Method Detail

setConfigurationProperties

public void setConfigurationProperties(Properties congurationProperties)
Configuring DataSourceInformationRepository

Parameters:
congurationProperties - 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 a existing a DataSourceInformation instance by 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 all DataSourceInformations in the repository

Returns:
List of DataSourceInformations

setRepositoryListener

public void setRepositoryListener(DataSourceInformationRepositoryListener listener)
Sets a DataSourceInformationRepositoryListener

Parameters:
listener - DataSourceInformationRepositoryListener instance

removeRepositoryListener

public void removeRepositoryListener()
Remove existing DataSourceInformationRepositoryListener


getRepositoryListener

public DataSourceInformationRepositoryListener getRepositoryListener()
Gets existing DataSourceInformationRepositoryListener

Returns:
DataSourceInformationRepositoryListener that have been registered


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.