public class SingleDataSourceLookup extends java.lang.Object implements DataSourceLookup
Constructor and Description |
---|
SingleDataSourceLookup(javax.sql.DataSource dataSource)
Create a new instance of the
SingleDataSourceLookup class. |
Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
getDataSource(java.lang.String dataSourceName)
Retrieve the DataSource identified by the given name.
|
public SingleDataSourceLookup(javax.sql.DataSource dataSource)
SingleDataSourceLookup
class.dataSource
- the single DataSource
to wrappublic javax.sql.DataSource getDataSource(java.lang.String dataSourceName)
DataSourceLookup
getDataSource
in interface DataSourceLookup
dataSourceName
- the name of the DataSourcenull
)