|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jdbc.datasource.lookup.SingleDataSourceLookup
public class SingleDataSourceLookup
An implementation of the DataSourceLookup that simply wraps a single given DataSource, returned for any data source name.
| Constructor Summary | |
|---|---|
SingleDataSourceLookup(DataSource dataSource)
Create a new instance of the SingleDataSourceLookup class. |
|
| Method Summary | |
|---|---|
DataSource |
getDataSource(String dataSourceName)
Retrieve the DataSource identified by the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleDataSourceLookup(DataSource dataSource)
SingleDataSourceLookup class.
dataSource - the single DataSource to wrap| Method Detail |
|---|
public DataSource getDataSource(String dataSourceName)
DataSourceLookup
getDataSource in interface DataSourceLookupdataSourceName - the name of the DataSource
null)
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||