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

ISimpleProjectService projectService = spoofax.injector.getInstance(SimpleProjectService.class);
Submitted by Guido Wachsmuth on 14 February 2017 at 13:03

On 14 February 2017 at 13:07 Gabriƫl Konat tagged documentation

Log in to post comments