Skip to content
This repository has been archived by the owner. It is now read-only.

Make client class lookup dynamic in factory #219

Merged
merged 4 commits into from Jan 30, 2019
Merged

Make client class lookup dynamic in factory #219

merged 4 commits into from Jan 30, 2019

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Jan 30, 2019

Currently, the InputReaderFactory has a hard-coded list of streaming clients which it can instantiate. This change ports the dynamic instantiation from the sender tool to the factory to remove the hard-coding and enable the factory to create arbitrary clients.

All Submissions:

  • Have you followed the guidelines in our Contributing document?

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

  • Does your PR follow our Code of Conduct?

  • Have you added an explanation of what your changes do and why you'd like us to include them?

  • Does each method or function "do one thing well"? Reviewers may recommend methods be split up for maintainability and testability.

  • Is this code designed to be testable?

  • Is the code documented well?

  • Does your submission pass existing tests (or update existing tests with documentation regarding the change)?

  • Have you added tests to cover your changes?

  • Have you linted your code prior to submission?

  • Have you updated the documentation and README? Not applicable: refactor

  • Is PII treated correctly? In particular, make sure the code is not logging objects or strings that might contain PII (e.g. request headers). Not applicable: refactor

  • Have secrets been stripped before committing? Not applicable: refactor

@c-w c-w force-pushed the dynamic-factory branch from 5fdc39e to 072ca0e Jan 30, 2019
@c-w c-w force-pushed the dynamic-factory branch from 072ca0e to cca9f21 Jan 30, 2019
sayar
sayar approved these changes Jan 30, 2019
@sayar sayar merged commit 5430386 into master Jan 30, 2019
2 checks passed
@sayar sayar deleted the dynamic-factory branch Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants