public class DefaultOsgiPersistentCache extends Object implements OsgiPersistentCache
| Constructor and Description |
|---|
DefaultOsgiPersistentCache(File baseDir)
Constructs a cache, using the passed file as the base directory for cache subdirectories
|
DefaultOsgiPersistentCache(File baseDir,
String applicationVersion)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all caches
|
File |
getFrameworkBundleCache() |
File |
getOsgiBundleCache() |
File |
getTransformedPluginCache() |
void |
validate(String cacheValidationKey)
Validates the caches against a cache key.
|
public DefaultOsgiPersistentCache(File baseDir)
baseDir - The base directory@Deprecated public DefaultOsgiPersistentCache(File baseDir, String applicationVersion)
public File getFrameworkBundleCache()
getFrameworkBundleCache in interface OsgiPersistentCachepublic File getOsgiBundleCache()
getOsgiBundleCache in interface OsgiPersistentCachepublic File getTransformedPluginCache()
getTransformedPluginCache in interface OsgiPersistentCachepublic void clear()
throws OsgiContainerException
OsgiPersistentCacheclear in interface OsgiPersistentCacheOsgiContainerException - If the caches couldn't be clearedpublic void validate(String cacheValidationKey)
OsgiPersistentCachevalidate in interface OsgiPersistentCachecacheValidationKey - The cache key, can be anythingCopyright © 2014 Atlassian. All rights reserved.