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 Details

    • 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()
      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