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
abstract void clear()
Clear all caches
abstract File getFrameworkBundleCache()
abstract File getOsgiBundleCache()
abstract File getTransformedPluginCache()
abstract void validate(String cacheKey)
Validates the caches against a cache key.

Public Methods

public abstract void clear ()

Clear all caches

Throws
OsgiContainerException If the caches couldn't be cleared

public abstract File getFrameworkBundleCache ()

Returns
  • the directory to store extracted framework bundles

public abstract File getOsgiBundleCache ()

Returns
  • the directory to use for the container bundle cache

public abstract File getTransformedPluginCache ()

Returns
  • the directory to store transformed plugins

public abstract 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