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