public Injector getInjector() { if (injector == null) { stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); this.injector = internalCreateInjector(); stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); } return injector; }
static { GlobalRegistries.initializeDefaults(); }
public void setupRegistry() { globalStateMemento = GlobalRegistries.makeCopyOfGlobalState(); if (injector != null) new IzpackStandaloneSetup().register(injector); }