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

DI integration #34

Open
alexist opened this issue Nov 25, 2023 · 1 comment
Open

DI integration #34

alexist opened this issue Nov 25, 2023 · 1 comment

Comments

@alexist
Copy link
Contributor

alexist commented Nov 25, 2023

Hi,
Currently, there is no dependency injection, dependencies are instanciates in classes who needs them.
The main drawback : writing unit test is not easy, you will need PowerMock, mock constructor call, and maybe mock static method too

Integrating a minimalist DI framework can solve this.

This article talk about Micronaut DI integration with vertx : https://taraskohut.medium.com/vert-x-micronaut-do-we-need-dependency-injection-in-the-microservices-world-84e43b3b228e

@grrolland
Copy link
Owner

Hi,

You are right, it's perhaps time to inject depedencies !!

I try Micronaut DI on antoher project. It seems good for the purpose here. You can try version 3.10.3, the last compatible with Java 1.8, if you have some time to spend on this !!

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