Omaha #3378 path manager cache changes

Change-Id: Ib46f5ac807dfccd6d507fc49d474d16ec19d82b2

Former-commit-id: 01106a4e4cd5b5eb0caa0d639439351f291e345c
This commit is contained in:
Brian Clements 2014-07-24 12:26:04 -05:00
parent a28b67c25b
commit 8736afb4c5

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();
}
}
/*