ngx-distributed-shm icon indicating copy to clipboard operation
ngx-distributed-shm copied to clipboard

DI integration

Open alexist opened this issue 1 year ago • 1 comments

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

alexist avatar Nov 25 '23 17:11 alexist