open class MapDataSourceLookup : DataSourceLookup
Simple DataSourceLookup implementation that relies on a map for doing lookups.
Useful for testing environments or applications that need to match arbitrary String names to target DataSource objects.
Author
Costin Leau
Author
Juergen Hoeller
Author
Rick Evans
Since
2.0
MapDataSourceLookup()MapDataSourceLookup(dataSources: MutableMap<String, DataSource>)MapDataSourceLookup(dataSourceName: String, dataSource: DataSource)
Create a new instance of the MapDataSourceLookup class. |
open fun addDataSource(dataSourceName: String, dataSource: DataSource): Unit
Add the supplied DataSource to the map of DataSource maintained by this object. |
|
open fun getDataSource(dataSourceName: String): DataSource |
|
open fun getDataSources(): MutableMap<String, DataSource>
Get the Map of DataSource maintained by this object. The returned Map is |
|
open fun setDataSources(dataSources: MutableMap<String, DataSource>): Unit
Set the Map of DataSource; the keys are String, the values are actual DataSource instances. If the supplied Map is |