- From a list of fully qualified class names in the
jdbc.drivers
property; - Through the Service Provider Interface (SPI).
javax.sql.DataSource
, which is formally part of Java EE, so we won't go into detail on it here.Driveris the main class of the JDBC driver implementation. When loaded by the class loader, it registers itself in the
DriverManager
. So, besides pre-configured drivers, additional drivers can be loaded simply by calling Class.forName
.You can explicitly create a
Connection
through the driver, bypassing the manager and builder. The driver provides information about possible/required properties for its operation in the form of a DriverPropertyInfo array.DriverAction is an additional interface that a
Driver
should implement if it wants to receive notifications about deregistration from DriverManager
.