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
 java.io.File getFrameworkBundleCache()
           
 java.io.File getOsgiBundleCache()
           
 java.io.File getTransformedPluginCache()
           
 void validate(java.lang.String cacheKey)
          Validates the caches against a cache key.
 

Method Detail

getFrameworkBundleCache

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

getOsgiBundleCache

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

getTransformedPluginCache

java.io.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(java.lang.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 © 2009 Atlassian Pty Ltd. All Rights Reserved.