Skip to content

feat: make client factory customizable #30

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

Merged
merged 2 commits into from
Dec 9, 2019
Merged

feat: make client factory customizable #30

merged 2 commits into from
Dec 9, 2019

Conversation

foo4u
Copy link
Contributor

@foo4u foo4u commented Dec 9, 2019

Allow developers to provide a custom client factory implementation.

JIRA Ticket

Allow developers to use Smartling's internal client factory for
system tests, etc.
public abstract class AbstractApiFactory<T> implements ApiFactory<T>
{
static ClientFactory defaultClientFactory()

Choose a reason for hiding this comment

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

so its in public class we try to load internal implementation first... seems unusual, but I guess its the best we can do here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, let's use the other approach we discussed with making sure all API factories export both constructors. Will update PR, thanks!

@foo4u foo4u changed the title feat: support internal client factory feat: make client factory customizable Dec 9, 2019
@foo4u foo4u requested a review from vlinetskiysml December 9, 2019 22:37
@foo4u foo4u merged commit 51bfed4 into master Dec 9, 2019
@foo4u foo4u deleted the AUT-596 branch December 9, 2019 23:00
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.

2 participants