public class ConnectionProviderFromDataSource extends Object implements ConnectionProvider
DataSource
.Constructor and Description |
---|
ConnectionProviderFromDataSource(DataSource dataSource)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection provider and releases its resources.
|
Connection |
get()
Returns a new
Connection (perhaps from a Connection pool). |
public ConnectionProviderFromDataSource(DataSource dataSource)
dataSource
- database connection sourcepublic Connection get()
ConnectionProvider
Connection
(perhaps from a Connection pool).get
in interface ConnectionProvider
public void close()
ConnectionProvider
close
in interface ConnectionProvider
Copyright © 2014–2015. All rights reserved.