/**
 * generated by Xtext 2.9.2
 */
package com.justeat.mickeydb;

import com.google.inject.Inject;
import com.google.inject.Injector;
import com.justeat.mickeydb.MickeyEnvironment;
import com.justeat.mickeydb.MickeyLangStandaloneSetupGenerated;
import org.apache.log4j.Logger;

/**
 * Initialization support for running Xtext languages without Equinox extension registry.
 */
@SuppressWarnings("all")
public class MickeyLangStandaloneSetup extends MickeyLangStandaloneSetupGenerated {
  private final static Logger LOG = Logger.getLogger(MickeyLangStandaloneSetup.class);
  
  @Inject
  private MickeyEnvironment mEnvironment;
  
  public static void doSetup() {
    MickeyLangStandaloneSetup _mickeyLangStandaloneSetup = new MickeyLangStandaloneSetup();
    _mickeyLangStandaloneSetup.createInjectorAndDoEMFRegistration();
  }
  
  @Override
  public Injector createInjector() {
    final Injector injector = super.createInjector();
    MickeyLangStandaloneSetup.LOG.debug("[Mickey Standalone]");
    injector.injectMembers(this);
    this.mEnvironment.setStandalone(true);
    return injector;
  }
}
