Package io.debezium.jdbc
Class JdbcConnection.ConnectionFactoryDecorator
- java.lang.Object
-
- io.debezium.jdbc.JdbcConnection.ConnectionFactoryDecorator
-
- All Implemented Interfaces:
JdbcConnection.ConnectionFactory
- Enclosing class:
- JdbcConnection
private class JdbcConnection.ConnectionFactoryDecorator extends Object implements JdbcConnection.ConnectionFactory
-
-
Field Summary
Fields Modifier and Type Field Description private Supplier<ClassLoader>
classLoaderSupplier
private JdbcConnection.ConnectionFactory
customConnectionFactory
private JdbcConnection.ConnectionFactory
defaultConnectionFactory
-
Constructor Summary
Constructors Modifier Constructor Description private
ConnectionFactoryDecorator(JdbcConnection.ConnectionFactory connectionFactory, Supplier<ClassLoader> classLoaderSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
connect(JdbcConfiguration config)
Establish a connection to the database denoted by the given configuration.
-
-
-
Field Detail
-
defaultConnectionFactory
private final JdbcConnection.ConnectionFactory defaultConnectionFactory
-
classLoaderSupplier
private final Supplier<ClassLoader> classLoaderSupplier
-
customConnectionFactory
private JdbcConnection.ConnectionFactory customConnectionFactory
-
-
Constructor Detail
-
ConnectionFactoryDecorator
private ConnectionFactoryDecorator(JdbcConnection.ConnectionFactory connectionFactory, Supplier<ClassLoader> classLoaderSupplier)
-
-
Method Detail
-
connect
public Connection connect(JdbcConfiguration config) throws SQLException
Description copied from interface:JdbcConnection.ConnectionFactory
Establish a connection to the database denoted by the given configuration.- Specified by:
connect
in interfaceJdbcConnection.ConnectionFactory
- Parameters:
config
- the configuration with JDBC connection information- Returns:
- the JDBC connection; may not be null
- Throws:
SQLException
- if there is an error connecting to the database
-
-