in src/main/java/org/apache/sling/datasource/internal/DriverDataSource.java [184:196]
private Driver loadDriverClass() throws SQLException {
try {
log.debug("Instantiating driver using class: {} [url={}]",
poolProperties.getDriverClassName(),poolProperties.getUrl());
return (Driver) bundleContext.getBundle()
.loadClass(poolProperties.getDriverClassName()).newInstance();
} catch (java.lang.Exception cn) {
log.debug("Unable to instantiate JDBC driver.", cn);
SQLException ex = new SQLException(cn.getMessage());
ex.initCause(cn);
throw ex;
}
}