Package org.springframework.jdbc.datasource.lookup
@NonNullApi
@NonNullFields
package org.springframework.jdbc.datasource.lookup
Provides a strategy for looking up JDBC DataSources by name.
-
ClassDescriptionAbstract
DataSource
implementation that routesAbstractRoutingDataSource.getConnection()
calls to one of various target DataSources based on a lookup key.DataSourceLookup
implementation based on a SpringBeanFactory
.Strategy interface for looking up DataSources by name.Exception to be thrown by a DataSourceLookup implementation, indicating that the specified DataSource could not be obtained.DataSource that routes to one of various target DataSources based on the current transaction isolation level.JNDI-basedDataSourceLookup
implementation.SimpleDataSourceLookup
implementation that relies on a map for doing lookups.An implementation of the DataSourceLookup that simply wraps a single given DataSource, returned for any data source name.