Class ServiceRegistryCacheManager

java.lang.Object
org.apache.felix.dm.impl.index.ServiceRegistryCacheManager

public class ServiceRegistryCacheManager extends Object
This class manages the service registry cache creation.
  • Constructor Details

    • ServiceRegistryCacheManager

      public ServiceRegistryCacheManager()
  • Method Details

    • getCache

      public static ServiceRegistryCache getCache()
      Gets the service registry cache, if enabled.
      Returns:
      the service registry cache, if enabled, or null
    • registerFilterIndex

      public static void registerFilterIndex(FilterIndex index, org.osgi.framework.BundleContext context)
      Registers a FilterIndex into the service registry cache. The cache is created if necessary.
      Parameters:
      index - a new FilterIndex to be registered in the cache
      context - the bundle context used by the cache
    • unregisterFilterIndex

      public static void unregisterFilterIndex(FilterIndex index)
      Unregister a FilterIndex from the cache, and possibly close the cache in case it becomes empty.
      Parameters:
      index - the FilterIndex to unregister
    • init

      public static void init()
      Initialize the service registry cache.