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>classLoaderSupplierprivate JdbcConnection.ConnectionFactorycustomConnectionFactoryprivate JdbcConnection.ConnectionFactorydefaultConnectionFactory
-
Constructor Summary
Constructors Modifier Constructor Description privateConnectionFactoryDecorator(JdbcConnection.ConnectionFactory connectionFactory, Supplier<ClassLoader> classLoaderSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectionconnect(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.ConnectionFactoryEstablish a connection to the database denoted by the given configuration.- Specified by:
connectin 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
-
-