public interface

DataSourceLookup

org.springframework.jdbc.datasource.lookup.DataSourceLookup
Known Indirect Subclasses

Class Overview

Strategy interface for looking up DataSources by name.

Used, for example, to resolve data source names in JPA persistence.xml files.

Summary

Public Methods
abstract DataSource getDataSource(String dataSourceName)
Retrieve the DataSource identified by the given name.

Public Methods

public abstract DataSource getDataSource (String dataSourceName)

Retrieve the DataSource identified by the given name.

Parameters
dataSourceName the name of the DataSource
Returns
  • the DataSource (never null)
Throws
DataSourceLookupFailureException if the lookup failed