public class UnitCacheSingleton extends Object
CompilationUnit
instances.Modifier and Type | Field and Description |
---|---|
static String |
GWT_PERSISTENTUNITCACHE |
Constructor and Description |
---|
UnitCacheSingleton() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
If a cache exists, asks it to clear its contents.
|
static UnitCache |
get(TreeLogger logger,
File specifiedCacheDir)
If the cache is enabled, instantiates the cache and begins loading units
into memory in a background thread.
|
static UnitCache |
get(TreeLogger logger,
File specifiedCacheDir,
File fallbackCacheDir)
If the cache is enabled, instantiates the cache and begins loading units
into memory in a background thread.
|
public static final String GWT_PERSISTENTUNITCACHE
public static void clearCache() throws UnableToCompleteException
UnableToCompleteException
public static UnitCache get(TreeLogger logger, File specifiedCacheDir)
Only one instance of the cache is instantiated. If a previously created cache exists, the previous instance is returned.
The specified cache dir parameter is optional.
public static UnitCache get(TreeLogger logger, File specifiedCacheDir, File fallbackCacheDir)
Only one instance of the cache is instantiated. If a previously created cache exists, the previous instance is returned.
Both specified and fallback cache dir parameters are optional.
Copyright © 2016. All rights reserved.