Java 类org.eclipse.xtext.util.DisposableRegistry 实例源码

项目:bromium    文件:BromiumServlet.java   
@Override
public void init() {
  try {
    super.init();
    final Injector injector = new BromiumWebSetup().createInjectorAndDoEMFRegistration();
    this.disposableRegistry = injector.<DisposableRegistry>getInstance(DisposableRegistry.class);
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
项目:org.xtext.dsl.restaurante    文件:RestauranteServlet.java   
@Override
public void init() {
  try {
    super.init();
    final Injector injector = new RestauranteWebSetup().createInjectorAndDoEMFRegistration();
    this.disposableRegistry = injector.<DisposableRegistry>getInstance(DisposableRegistry.class);
  } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
  }
}
项目:xtext-core    文件:ExecutorServiceProvider.java   
@Inject
public void registerTo(final DisposableRegistry disposableRegistry) {
  disposableRegistry.register(this);
}