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

Separate components by usage of dependency injection with CDI #125

Closed
zalintyre opened this issue Oct 15, 2023 · 3 comments
Closed

Separate components by usage of dependency injection with CDI #125

zalintyre opened this issue Oct 15, 2023 · 3 comments

Comments

@zalintyre
Copy link
Contributor

Coupling of components can be lowered using a dependency injection mechanism. I'd like to propose the use of CDI (Contexts and dependency injection). It is entirely usable with Java SE:

https://www.baeldung.com/java-ee-cdi

@korniltsev
Copy link
Collaborator

What problem does it solve?

@zalintyre
Copy link
Contributor Author

It mainly solves the problem of unit-testing separate components (units) instead of having to test the whole call-chain. This would be more of an integration test.

@korniltsev
Copy link
Collaborator

We don't have this problem

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