private class JdbcConnection.ConnectionFactoryDecorator extends Object implements JdbcConnection.ConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
private Supplier<ClassLoader> |
classLoaderSupplier |
private JdbcConnection.ConnectionFactory |
customConnectionFactory |
private JdbcConnection.ConnectionFactory |
defaultConnectionFactory |
| Modifier | Constructor and Description |
|---|---|
private |
ConnectionFactoryDecorator(JdbcConnection.ConnectionFactory connectionFactory,
Supplier<ClassLoader> classLoaderSupplier) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
connect(JdbcConfiguration config)
Establish a connection to the database denoted by the given configuration.
|
private final JdbcConnection.ConnectionFactory defaultConnectionFactory
private final Supplier<ClassLoader> classLoaderSupplier
private JdbcConnection.ConnectionFactory customConnectionFactory
private ConnectionFactoryDecorator(JdbcConnection.ConnectionFactory connectionFactory, Supplier<ClassLoader> classLoaderSupplier)
public Connection connect(JdbcConfiguration config) throws SQLException
JdbcConnection.ConnectionFactoryconnect in interface JdbcConnection.ConnectionFactoryconfig - the configuration with JDBC connection informationSQLException - if there is an error connecting to the databaseCopyright © 2021 JBoss by Red Hat. All rights reserved.