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

Don't use static Configuration #2

Open
drallgood opened this issue Apr 1, 2011 · 1 comment
Open

Don't use static Configuration #2

drallgood opened this issue Apr 1, 2011 · 1 comment

Comments

@drallgood
Copy link

When integrating the library into our project I had a few issues with the Configuration class.

The first problem is, that it uses the SystemClassloader to get its own properties file.
Might work in some cases, in our case it didn't.
I ended up creating my own jersey client without the static Configuration to get it running. Using static classes is a bad idea in most cases as it makes the whole thing untestable and error-prone.

@travel-cloud-simon
Copy link

Totally agree. Trying to run against the with-deps jar but cannot get it to load my own createsend.properties ...

richardbremner added a commit that referenced this issue Aug 5, 2015
Review of new Transactional API, Java implementation
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

No branches or pull requests

2 participants