Package org.opencms.loader
Class CmsImageCacheFactory
java.lang.Object
org.opencms.loader.CmsImageCacheFactory
Creates the external image cache selected in
opencms.properties.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic I_CmsImageCachecreate(CmsParameterConfiguration configuration) Creates the configured external image cache.static voidvalidateConfiguration(CmsParameterConfiguration configuration) Validates the image cache settings and separation from active and legacy data storage.
-
Field Details
-
PARAM_IMAGE_CACHE_PREFIX
Prefix for the direct image cache configuration.- See Also:
-
PARAM_IMAGE_CACHE_TYPE
Property selecting the image cache type.- See Also:
-
-
Method Details
-
create
public static I_CmsImageCache create(CmsParameterConfiguration configuration) throws CmsConfigurationException Creates the configured external image cache.- Parameters:
configuration- the runtime property configuration- Returns:
- the configured cache, or
nullfor the classic RFS image cache - Throws:
CmsConfigurationException- if the configuration is invalid or the cache is unavailable
-
validateConfiguration
public static void validateConfiguration(CmsParameterConfiguration configuration) throws CmsConfigurationException Validates the image cache settings and separation from active and legacy data storage.This does not open a cache or access S3, so offline maintenance tools can use the same validation.
- Parameters:
configuration- the runtime property configuration- Throws:
CmsConfigurationException- if the configuration is invalid
-