|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.
Field Summary | |
---|---|
private javax.sql.DataSource |
dataSource
|
Constructor Summary | |
---|---|
SingleDataSourceLookup(javax.sql.DataSource dataSource)
Create a new instance of the SingleDataSourceLookup class. |
Method Summary | |
---|---|
javax.sql.DataSource |
getDataSource(java.lang.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 |
Field Detail |
---|
private final javax.sql.DataSource dataSource
Constructor Detail |
---|
public SingleDataSourceLookup(javax.sql.DataSource dataSource)
SingleDataSourceLookup
class.
dataSource
- the single DataSource
to wrapMethod Detail |
---|
public javax.sql.DataSource getDataSource(java.lang.String dataSourceName)
DataSourceLookup
getDataSource
in interface DataSourceLookup
dataSourceName
- the name of the DataSource
null
)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |