dash-licenses icon indicating copy to clipboard operation
dash-licenses copied to clipboard

Make the implementation more extensible by adding dependency injection

Open waynebeaton opened this issue 5 years ago • 1 comments

Passing values (e.g. the settings, and logging) around via constructors is cumbersome. Further, things like the ContentIdParsers should be configurable and extendable (e.g., the FlatFileReader constructor hardcodes the parsers that it uses, this should be extendable). Dependency injection will make this sort of configuration easier.

waynebeaton avatar Feb 24 '20 23:02 waynebeaton

The IContext notion doesn't allow for extensibility. Dependency injection would likely be a better solution that would make it possible to, for example, reuse some of the services in a server-side process.

waynebeaton avatar Apr 16 '21 22:04 waynebeaton