public interface DatasourceConfigurer
DatasourceConfigurer
is responsible for configuring and providing a DataSource
based upon
a DatabaseConnection
. For performance reasons, some kind of connection-pooling should be applied.Modifier and Type | Field and Description |
---|---|
static String |
JMX_DOMAIN
the JMX-domain to register the configurer instance at
|
Modifier and Type | Method and Description |
---|---|
void |
configure(DatabaseConnection connection)
Configures the instance using the settings of the given
DatabaseConnection . |
void |
destroy()
Destroys the instance.
|
DataSource |
getDataSource()
Returns a
DataSource |
void |
setLogPerformance(boolean logPerformance)
Whether or not JDBC performance logger should be used
|
static final String JMX_DOMAIN
void configure(DatabaseConnection connection)
DatabaseConnection
.connection
- a DatabaseConnection
void destroy()
DataSource getDataSource()
DataSource
DataSource
void setLogPerformance(boolean logPerformance)
Copyright © 2011–2019 aiticon GmbH. All rights reserved.