Description
I'm using this driver in a r2dbc connection pool which is meant to have variable size.
The password for the database I'm accessing rotates hourly...
I was hoping to extend the classes
https://github.com/oracle/oracle-r2dbc/blob/main/src/main/java/oracle/r2dbc/impl/OracleConnectionFactoryImpl.java
https://github.com/oracle/oracle-r2dbc/blob/main/src/main/java/oracle/r2dbc/impl/OracleReactiveJdbcAdapter.java
to use an extended version of OracleDataSource where the getConnection() functions can call out to retrieve updated passwords.
However, it seems nearly everything in this lib is a final or protected class and cannot be extended...
Is there a better solution to this? Do I have to just destroy my connection pool every time it fails to create a new connection and recreate it entirely?
Would it be possible to make these classes public and non-final? Or even allow a supplier like Mono<String> for the password?