Omaha #3378 path manager cache changes

Change-Id: Ib46f5ac807dfccd6d507fc49d474d16ec19d82b2

Former-commit-id: 189667ea54 [formerly 2fe6fcf0ed] [formerly 282304b8f7] [formerly 8736afb4c5 [formerly 282304b8f7 [formerly 01106a4e4cd5b5eb0caa0d639439351f291e345c]]]
Former-commit-id: 8736afb4c5
Former-commit-id: 7891eb63444068b0d2b06549b0a529f0d9b8930d [formerly c481fec138]
Former-commit-id: b4045aad84
This commit is contained in:
Brian Clements 2014-07-24 12:26:04 -05:00
parent 2076b32604
commit 4e3a9e017b

View file

@ -21,7 +21,7 @@ package com.raytheon.uf.viz.thinclient.localization;
import java.io.File;
import com.raytheon.uf.common.localization.PathManager;
import com.raytheon.uf.common.localization.IPathManager;
import com.raytheon.uf.common.localization.PathManagerFactory;
import com.raytheon.uf.viz.core.localization.CAVELocalizationAdapter;
import com.raytheon.uf.viz.core.localization.CAVELocalizationNotificationObserver;
@ -38,6 +38,7 @@ import com.raytheon.uf.viz.thinclient.preferences.ThinClientPreferenceConstants;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Oct 31, 2011 mschenke Initial creation
* Jul 24, 2014 3378 bclement cache serialization done via interface
*
* </pre>
*
@ -61,7 +62,12 @@ public class LocalizationCachePersistence extends AbstractCachePersistance {
*/
@Override
public void store(File cacheFile) {
PathManager.storeCache(cacheFile);
IPathManager pathManager = PathManagerFactory.getPathManager();
try {
pathManager.storeCache(cacheFile);
} catch (Exception e) {
e.printStackTrace();
}
}
/*
@ -73,7 +79,12 @@ public class LocalizationCachePersistence extends AbstractCachePersistance {
*/
@Override
public void restore(File cacheFile) {
PathManager.restoreCache(cacheFile);
IPathManager pathManager = PathManagerFactory.getPathManager();
try {
pathManager.restoreCache(cacheFile);
} catch (Exception e) {
e.printStackTrace();
}
}
/*