|
|
@ -204,10 +204,12 @@ public class ImplHandler { |
|
|
|
|
|
|
|
|
|
|
|
public void clearCache(){ |
|
|
|
public void clearCache(){ |
|
|
|
// The iterator of the values collection is thread safe
|
|
|
|
// The iterator of the values collection is thread safe
|
|
|
|
|
|
|
|
synchronized (classToCacheMap) { |
|
|
|
for (AssetCache cache : classToCacheMap.values()){ |
|
|
|
for (AssetCache cache : classToCacheMap.values()){ |
|
|
|
cache.clearCache(); |
|
|
|
cache.clearCache(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public <T extends AssetCache> T getCache(Class<T> cacheClass) { |
|
|
|
public <T extends AssetCache> T getCache(Class<T> cacheClass) { |
|
|
|
if (cacheClass == null) { |
|
|
|
if (cacheClass == null) { |
|
|
|