TypeFox / yang-lsp

A Language Server for YANG
http://www.yang-central.org
Apache License 2.0
52 stars 13 forks source link

GH-88 Use Injector to initialize extensions #89

Closed JanKoehnlein closed 6 years ago

huyuwen commented 6 years ago

Hi Sven and Jan,

I tried to create a Class which implements IValdiationExtension `class MyYangRuleValidator implements IValidatorExtension { @Inject protected extension YangExtensions yangExtesions;

override validate(AbstractModule module, IAcceptor<Issue> issueAcceptor, CancelIndicator cancelIndicator) {
    System.out.println("Invoke test");
}

}`

The Validator class could be loaded, but yangExtensions is still null. Did I do something wrong?