Package com.e1c.langtool.external.cache
Interface ITranslationCacheManager
- All Known Implementing Classes:
SharedTranslationCache,TranslationCacheManager
public interface ITranslationCacheManager
This interface provides getting and setting translation cache instances
for specified providers by their ids.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThis interface extendsICachewith generic types specially for storing results of translations. -
Method Summary
Modifier and TypeMethodDescriptiongetCacheByProviderId(String providerId) Returns the cache of translations for the given provider's id or null if this manager contains no cache for the given id.voidsetCache(String providerId, ITranslationCacheManager.ITranslationCache cache) Sets the cache of translations for specified provider.
-
Method Details
-
getCacheByProviderId
Returns the cache of translations for the given provider's id or null if this manager contains no cache for the given id.- Parameters:
providerId- the provider's id whose associated cache is to be returned- Returns:
- the cache of translations for specified provider
-
setCache
Sets the cache of translations for specified provider.- Parameters:
providerId- the provider's id whose associated cache is to be setcache- the cache of translations- Throws:
IllegalArgumentException- if the specified provider's id is null or the given cache is null
-