spring-framework / org.springframework.jdbc.datasource.lookup / MapDataSourceLookup / <init>

<init>

MapDataSourceLookup()

Create a new instance of the MapDataSourceLookup class.

MapDataSourceLookup(dataSources: MutableMap<String, DataSource>)

Create a new instance of the MapDataSourceLookup class.

Parameters

dataSources - the Map of DataSource; the keys are String, the values are actual DataSource instances.

MapDataSourceLookup(dataSourceName: String, dataSource: DataSource)

Create a new instance of the MapDataSourceLookup class.

Parameters

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

dataSource - the DataSource to be added