Interface BslContentCacheManager
- All Superinterfaces:
IManagedService
- All Known Implementing Classes:
BslContentCacheManagerImpl
Manager allows to hold cache of content by bsl module file. If file modified cache may be evicted.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(IBslCacheInvalidationListener listener) Adds the listener that will be notified of cache invalidation event by file.get(org.eclipse.core.resources.IFile file) Retrieve cached content for givenfile.voidinvalidate(org.eclipse.core.resources.IFile file) Invalidate cache for givenfile.voidStorecontentassociated withfile.voidremoveListener(IBslCacheInvalidationListener listener) Removes the cache invalidation listener.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
get
Retrieve cached content for givenfile. If cache has no content for given file thennullwill be returned.- Parameters:
file- the file for whitch retrive cached content, cannot benull- Returns:
- Cached content or
nullif no content found in cache.
-
invalidate
void invalidate(org.eclipse.core.resources.IFile file) Invalidate cache for givenfile.- Parameters:
file- File to be invalidated, cannot benull
-
put
Storecontentassociated withfile.- Parameters:
file- File to be added to the cache, cannot benullcontent- Cached file content, cannot benull
-
addListener
Adds the listener that will be notified of cache invalidation event by file.- Parameters:
listener- the listener, cannot benull
-
removeListener
Removes the cache invalidation listener.- Parameters:
listener- the listener, cannot benull
-