开发者

A Right Way To Inject Services

开发者 https://www.devze.com 2022-12-07 17:58 出处:网络
I have a complex application where services are injected into each other. What is your way of injecting service into each other.

I have a complex application where services are injected into each other. What is your way of injecting service into each other. Like I have 5 services and need to inject them into each other. I'm injeccting a service e开发者_如何转开发verytime into other service. E.g. service_1, service_2, service_3, service_4 -> service_5 service_5, service_2, service_3, service_4 -> service_1 service_1, service_3, service_4, service_5 -> service_2

and so on. I inject all the services that are used inside that one.

I tried to creat application on described way but was creating problem. So need an architectural solution for this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号