Document dependency injection
The language processing manual references dependency injection in code comments like this:
ISimpleProjectService projectService = ... // Get through dependency injection
Unfortunately, it is never explained what this means or how this is done. I would also like to see an explanation on when to use the fields of a
Spoofax
object and when to use dependency injection:IProjectService projectService = spoofax.projectService;
versus
Submitted by Guido Wachsmuth on 14 February 2017 at 13:03ISimpleProjectService projectService = spoofax.injector.getInstance(SimpleProjectService.class);