|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache
public class DefaultOsgiPersistentCache
Default implementation of persistent cache. Handles clearing of directories if an upgrade has been detected.
| Constructor Summary | |
|---|---|
DefaultOsgiPersistentCache(File baseDir)
Constructs a cache, using the passed file as the base directory for cache subdirectories |
|
DefaultOsgiPersistentCache(File baseDir,
String applicationVersion)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear all caches |
File |
getFrameworkBundleCache()
|
File |
getOsgiBundleCache()
|
File |
getTransformedPluginCache()
|
void |
validate(String cacheValidationKey)
Validates the caches against a cache key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultOsgiPersistentCache(File baseDir)
baseDir - The base directory
@Deprecated
public DefaultOsgiPersistentCache(File baseDir,
String applicationVersion)
| Method Detail |
|---|
public File getFrameworkBundleCache()
getFrameworkBundleCache in interface OsgiPersistentCachepublic File getOsgiBundleCache()
getOsgiBundleCache in interface OsgiPersistentCachepublic File getTransformedPluginCache()
getTransformedPluginCache in interface OsgiPersistentCache
public void clear()
throws OsgiContainerException
OsgiPersistentCache
clear in interface OsgiPersistentCacheOsgiContainerException - If the caches couldn't be clearedpublic void validate(String cacheValidationKey)
OsgiPersistentCache
validate in interface OsgiPersistentCachecacheValidationKey - The cache key, can be anything
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||