spring-framework / org.springframework.jdbc.datasource.lookup / MapDataSourceLookup / addDataSource

addDataSource

open fun addDataSource(dataSourceName: String, dataSource: DataSource): Unit

Add the supplied DataSource to the map of DataSource maintained by this object.

Parameters

dataSourceName - the name under which the supplied DataSource is to be added

dataSource - the DataSource to be so added