@Override
  public final synchronized void releaseBeans() throws Exception {
    // stop logger's flushes to file
    ILog log = lazyGetLogger();
    if (log != null && log instanceof ALogFile) {
      ALogFile logf = (ALogFile) log;
      logf.debug(null, AFactoryAppBeans.class,
        "Send stop to logger file: " + logf.getPath());
      logf.setNeedRun(false);
    }
    log = lazyGetSecureLogger();
    if (log != null && log instanceof ALogFile) {
      ALogFile logf = (ALogFile) log;
      logf.debug(null, AFactoryAppBeans.class,
        "Send stop to logger file: " + logf.getPath());
      logf.setNeedRun(false);
    }
    getEntitiesMap().clear();
    getBeansMap().clear();
    //inner factories clear:
    this.factoryBldServices = null;
    this.factoryOverBeans = null;
    this.factoryReplicatorXmlHttps = null;
    this.factoryDatabaseWriterXml = null;
    //need to reinitialize inner factories
    this.isReinitializing = true;
  }
@ Override public final synchronized void releaseBeans ( ) throws Exception { ILog log = lazyGetLogger ( ) ; if ( log != null && log instanceof ALogFile ) { ALogFile logf = ( ALogFile ) log ; logf . debug ( null , AFactoryAppBeans . class , "Send stop to logger file: " + logf . getPath ( ) ) ; logf . setNeedRun ( false ) ; } log = lazyGetSecureLogger ( ) ; if ( log != null && log instanceof ALogFile ) { ALogFile logf = ( ALogFile ) log ; logf . debug ( null , AFactoryAppBeans . class , "Send stop to logger file: " + logf . getPath ( ) ) ; logf . setNeedRun ( false ) ; } getEntitiesMap ( ) . clear ( ) ; getBeansMap ( ) . clear ( ) ; this . factoryBldServices = null ; this . factoryOverBeans = null ; this . factoryReplicatorXmlHttps = null ; this . factoryDatabaseWriterXml = null ; this . isReinitializing = true ; }
<p>Release beans (memory). This is "memory friendly" factory.
All beans (include from sub-factories) are here. Changing database needs
to reinitialize.</p>
@throws Exception - an exception