コード例 #1
0
ファイル: TPTApplication.java プロジェクト: xbaran/TPT
  /**
   * This method cleanups resources from previous app instance. When Vaadin app is created using CDI
   * injection, http session does not die after app.close() which results the same application
   * instance to be used for the next application.
   */
  private void cleanupPreviousResources() {
    // Remove all old windows, if any
    Collection<Window> oldWindows = getWindows();
    for (Window w : oldWindows) {
      removeWindow(w);
    }

    // Remove all i18n data
    if (internationalizationDictionary != null) {
      internationalizationDictionary.clear();
    }
  }