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
Create a new instance of the
MapDataSourceLookup class.
Parameters: dataSourceName - the name under which the supplied DataSource is to be added Parameters: dataSource - the DataSource to be added
Add the supplied
DataSource to the map of
DataSource DataSources maintained by this object.
Parameters: dataSourceName - the name under which the supplied DataSource is to be added Parameters: dataSource - the DataSource to be so added