Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.2.0
-
None
Description
It think it would be nice better to implement a ConnectionFactory class name setting in BasicDataSource class or implement a interface in DriverConnectionFactory class.
In my current project, when getting a connection in my program, I call oracleSetModule.
so, i think that after creating connection, call oracleSetModule via connectionFactoryImpl seems to be nice.
[Before]
protected ConnectionFactory createConnectionFactory() throws SQLException
{ ... ... ConnectionFactory driverConnectionFactory = new DriverConnectionFactory(driverToUse, url, connectionProperties); return driverConnectionFactory; }[After]
protected ConnectionFactory createConnectionFactory() throws SQLException
{ ... ... ConnectionFactory driverConnectionFactory = getConnectionFactoryImpl().newInstance(...); return driverConnectionFactory; }