Interface BslContentCacheManager

All Superinterfaces:
IManagedService
All Known Implementing Classes:
BslContentCacheManagerImpl

public interface BslContentCacheManager extends IManagedService
Manager allows to hold cache of content by bsl module file. If file modified cache may be evicted.
  • Field Details

  • Method Details

    • get

      String get(org.eclipse.core.resources.IFile file)
      Retrieve cached content for given file. If cache has no content for given file then null will be returned.
      Parameters:
      file - the file for whitch retrive cached content, cannot be null
      Returns:
      Cached content or null if no content found in cache.
    • invalidate

      void invalidate(org.eclipse.core.resources.IFile file)
      Invalidate cache for given file.
      Parameters:
      file - File to be invalidated, cannot be null
    • put

      void put(org.eclipse.core.resources.IFile file, String content)
      Store content associated with file.
      Parameters:
      file - File to be added to the cache, cannot be null
      content - Cached file content, cannot be null
    • addListener

      void addListener(IBslCacheInvalidationListener listener)
      Adds the listener that will be notified of cache invalidation event by file.
      Parameters:
      listener - the listener, cannot be null
    • removeListener

      void removeListener(IBslCacheInvalidationListener listener)
      Removes the cache invalidation listener.
      Parameters:
      listener - the listener, cannot be null