Class MapDataSourceLookup

java.lang.Object
org.springframework.jdbc.datasource.lookup.MapDataSourceLookup
All Implemented Interfaces:
DataSourceLookup

public class MapDataSourceLookup extends Object implements 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.

Since:
2.0
Author:
Costin Leau, Juergen Hoeller, Rick Evans