public interface

OsgiPersistentCache

com.atlassian.plugin.osgi.container.OsgiPersistentCache
Known Indirect Subclasses

Class Overview

Access to persistent cache locations used throughout the OSGi plugin system. Implementations are responsible for ensuring the directories are not null and do exist.

Summary

Public Methods
void clear()
Clear all caches
File getFrameworkBundleCache()
File getOsgiBundleCache()
File getTransformedPluginCache()
void validate(String cacheKey)
Validates the caches against a cache key.

Public Methods

public void clear ()

Clear all caches

Throws
OsgiContainerException If the caches couldn't be cleared

public File getFrameworkBundleCache ()

Returns
  • the directory to store extracted framework bundles

public File getOsgiBundleCache ()

Returns
  • the directory to use for the container bundle cache

public File getTransformedPluginCache ()

Returns
  • the directory to store transformed plugins

public void validate (String cacheKey)

Validates the caches against a cache key. If the key changes, the directories are wiped clean.

Parameters
cacheKey The cache key, can be anything