wzr1337 / rsi.server

This project implements the Volkswagen Infotainment Web Interface as published under https://www.w3.org/Submission/2016/01/. The viwi is now called RESTful service interface (rsi)
MIT License
62 stars 18 forks source link

Dependency injection mechnism needed #13

Open wzr1337 opened 7 years ago

wzr1337 commented 7 years ago

For a higher testibility of the main code, injecting an thus mocking service and resource independently from a plugin implementation would be very helpful.

This would mean quite some refac of the current code. In favor of testibility it should be seriously considered.

SergejIsbrecht commented 7 years ago

I could do it. Do you have any library in mind? Something like https://github.com/inversify/InversifyJS ?

wzr1337 commented 7 years ago

no nothing special.. it should play nicely with typescript and @types definitions though

BenjaminDobler commented 7 years ago

How about the angular mechanism? https://github.com/mgechev/injection-js Haven`t had the time ti check it out myself but having the same way as in angular seems intriguing!

wzr1337 commented 6 years ago

anyone still interested in supporting here?

@fibric and I discussed this issue the other day

ghost commented 6 years ago

Needs some refactoring for sure :)

Sent with GitHawk

wzr1337 commented 6 years ago

ahh... you lie 😁

ghost commented 6 years ago

why should I? 😆