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

Use current thread resource context instead of system one #32

Merged
merged 5 commits into from
Sep 19, 2022

Conversation

devportilla
Copy link
Contributor

Issue #, if available:

Description of changes:

This change will allow the Config to be able to load resources if they arent on the system classpath, for instance, on a war deployed file, where the classloader cant see the secretsmanager.properties file because its only on the app classpath and not on the system one.

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

@simonmarty simonmarty enabled auto-merge (squash) May 10, 2022 21:48
Copy link
Contributor

@willtong1234 willtong1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that the system classloader is probably the wrong one to use here. I go back and forth on whether we should use the current class classloader or the current thread context classloader. Unfortunately no matter which decision we make, we will probably not satisfy all customers. I'm going to approve this for now since I think the current thread context classloader should be sufficient in most cases.

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.

3 participants