why not
class MyDslServlet extends XtextServlet {
DisposableRegistry disposableRegistry
override init() {
super.init()
MyDslAStandaloneSetup.doSetup();
MyDslBStandaloneSetup.doSetup();
val injector = new MyDslWebSetup().createInjectorAndDoEMFRegistration()
disposableRegistry = injector.getInstance(DisposableRegistry)
}
or
class MyDslServlet extends XtextServlet {
DisposableRegistry disposableRegistry
override init() {
super.init()
MyDslAStandaloneSetup.doSetup();
MyDslBStandaloneSetup.doSetup();
val injector = new MyDslWebSetup().createInjectorAndDoEMFRegistration()
disposableRegistry = injector.getInstance(DisposableRegistry)
}
class MyDslServlet extends XtextServlet {
DisposableRegistry disposableRegistry
override init() {
super.init()
new MyDslAWebSetup().createInjectorAndDoEMFRegistration();
new MyDslBWebSetup().createInjectorAndDoEMFRegistration();
val injector = new MyDslWebSetup().createInjectorAndDoEMFRegistration()