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
|
| 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 directorypublic 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 © 2019 Atlassian. All rights reserved.