com.atlassian.plugin.osgi.container
Interface OsgiPersistentCache

All Known Implementing Classes:
DefaultOsgiPersistentCache

public interface OsgiPersistentCache

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

Since:
2.2.0

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

Method Detail

getFrameworkBundleCache

File getFrameworkBundleCache()
Returns:
the directory to store extracted framework bundles

getOsgiBundleCache

File getOsgiBundleCache()
Returns:
the directory to use for the container bundle cache

getTransformedPluginCache

File getTransformedPluginCache()
Returns:
the directory to store transformed plugins

clear

void clear()
           throws OsgiContainerException
Clear all caches

Throws:
OsgiContainerException - If the caches couldn't be cleared

validate

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


Copyright © 2012 Atlassian. All Rights Reserved.