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

Integrate Dependency Injection Framework #264

Open
jkuester opened this issue Apr 21, 2022 · 1 comment · May be fixed by #321
Open

Integrate Dependency Injection Framework #264

jkuester opened this issue Apr 21, 2022 · 1 comment · May be fixed by #321
Assignees
Labels
Type: Technical issue Improve something that users won't notice

Comments

@jkuester
Copy link
Contributor

Describe the issue
For larger Java projects it can be very helpful to emphasize composition over simple inheritance when building out the class structures and hierarchy. Composition allows for proper code separation and reusability making things easier to understand and to unit test.

The big downside of Composition (IMHO) is that you end up needing to be able to pass around a bunch of different classes that you use when "composing" your logic. This is where dependency injection frameworks become very useful because they can abstract away this overhead and allow developers to focus on the just the flow of the activity data they care about.

Describe the improvement you'd like
As our Java code-base here continues to grow and especially as we try to improve the coverage of the unit test cases, I think we should consider implementing a dependency injection framework such as Hilt.

@jkuester jkuester added the Type: Technical issue Improve something that users won't notice label Apr 21, 2022
@jkuester
Copy link
Contributor Author

Also worth noting that this is the same concept as the Angular dependency injection that we are already using in cht-core...

@jkuester jkuester self-assigned this Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Technical issue Improve something that users won't notice
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant