public Injector getInjector() {
   if (injector == null) {
     stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
     this.injector = internalCreateInjector();
     stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
   }
   return injector;
 }
コード例 #2
0
 public void setupRegistry() {
   globalStateMemento = GlobalRegistries.makeCopyOfGlobalState();
   if (injector != null) new IzpackStandaloneSetup().register(injector);
 }