public final void load() throws InjectionException {
  try {
    staticContextLock.acquire();
  }
 catch (  InterruptedException e) {
    throw new InjectionException("The operation was canceled",e);
  }
  final Injector injector=new Injector(definePackage());
  Map<Class<?>,Object> beans=injector.loadAllBeans(this);
  injector.injectAllBeans(strictLoadingPolicy,beans);
}

public final void load ( ) throws InjectionException { try { staticContextLock . acquire ( ) ; } catch ( InterruptedException e ) { throw new InjectionException ( "The operation was canceled" , e ) ; } final Injector injector = new Injector ( definePackage ( ) ) ; Map < Class < ? > , Object > beans = injector . loadAllBeans ( this ) ; injector . injectAllBeans ( strictLoadingPolicy , beans ) ; }
loads a configuration file . if another configuration file is already loaded , blocks until it is closed .
