Interface ConnectionSource

All Superinterfaces:
All Known Implementing Classes:
AbstractConnectionSource, AbstractDriverManagerConnectionSource, DataSourceConnectionSource, DriverManagerConnectionSource, FactoryMethodConnectionSource

public interface ConnectionSource extends LifeCycle
Configuration element for JdbcAppender. If you want to use the JdbcAppender but none of the provided connection sources meet your needs, you can simply create your own connection source.
  • Method Details

    • getConnection

      Connection getConnection() throws SQLException
      This should return a new connection every time it is called.
      the SQL connection object.
      SQLException - if a database error occurs.
    • toString

      String toString()
      All implementations must override Object.toString() to provide information about the connection configuration (obscuring passwords with one-way hashes).
      toString in class Object
      the string representation of this connection source.