Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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