public interface ConnectionProvider extends Cleanupable, ConnectionProviderIdentificator
CONNECTION_PROVIDER_IDENTIFIER
Modifier and Type | Method and Description |
---|---|
Object |
getConnection()
Get a data source connection
|
void |
initialize(Properties properties)
Initializes the connection provider.
|
void |
returnConnection(Object connection)
Return the connection to the provider
|
cleanup
getConnectionProviderIdentifier
Object getConnection() throws ConnectionProviderException
ConnectionProviderException
void returnConnection(Object connection)
connection
- Connectionvoid initialize(Properties properties) throws ConfigurationException
properties
- the propertiesConfigurationException
- if the initialization failedCopyright © 2012-2015 52north.org. All Rights Reserved.