Skip to content

Ensure wrapped driver exists on classpath at time of registration#164

Open
imaperson wants to merge 6 commits intoaws:masterfrom
Salix-Software-Solutions:master
Open

Ensure wrapped driver exists on classpath at time of registration#164
imaperson wants to merge 6 commits intoaws:masterfrom
Salix-Software-Solutions:master

Conversation

@imaperson
Copy link

Issue #, if available:

Description of changes:

Initialization and registration of the AWS driver can happen successfully while later JDBC actions failed due to the wrapped driver's not existing. For example, if "org.postgresql.Driver" does not exist on the classpath this will be discovered later than it needs to be at runtime. Additionally, loading the drivers during the registration process facilitates detection of required classes by frameworks such as quarkus when building optimized builds.

To ensure required classes are loaded during registration, I added a called to "getWrappedDriver()" to the end of the AWSSecretsManagerDriver(SecretCache cache) constructor.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant