|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 OsgiPersistentCache
public File getOsgiBundleCache()
getOsgiBundleCache
in interface OsgiPersistentCache
public File getTransformedPluginCache()
getTransformedPluginCache
in interface OsgiPersistentCache
public void clear() throws OsgiContainerException
OsgiPersistentCache
clear
in interface OsgiPersistentCache
OsgiContainerException
- If the caches couldn't be clearedpublic void validate(String cacheValidationKey)
OsgiPersistentCache
validate
in interface OsgiPersistentCache
cacheValidationKey
- The cache key, can be anything
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |