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

allow changing default RestClient #88

Closed
wants to merge 1 commit into from

Conversation

emmericp
Copy link

fixes #87

@@ -16,6 +16,11 @@ private synchronized static RestClient getClient() {
}
return client;
}

public synchronized static void setClient(RestClient client) {
Copy link
Owner

Choose a reason for hiding this comment

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

I was thinking of renaming this to configure, and instead a RestClient, a ClientBuilder and then calling .build() from within the method, RestClient can be modified externaly, like calling .close() which is not ideal. Thoughts ?

@emmericp emmericp closed this Aug 15, 2019
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.

[Feature request] Allow changing the default client used by the static methods
2 participants