0
votes
@Inject
protected void setInjectedParser(IParser parser) {
    this.parser = parser;
}

I want to manually run the xtext engine and i'm not sure when and where the setInjectedParser is being called.

thanks,

1

1 Answers

1
votes

Guice will call the #setInjectedParser(IParser) while constructing an instance of XtextResource to inject it somewhere else. This is done by Guice because the setter is annotated with @Inject.

manually run the xtext engine

What do you mean by this?