Class GuavaCachedCorsPropertiesLoader
java.lang.Object
de.hybris.platform.core.cors.loader.impl.GuavaCachedCorsPropertiesLoader
- All Implemented Interfaces:
CorsPropertiesLoader,ConfigIntf.ConfigChangeListener,org.springframework.beans.factory.InitializingBean
public class GuavaCachedCorsPropertiesLoader
extends Object
implements CorsPropertiesLoader, org.springframework.beans.factory.InitializingBean, ConfigIntf.ConfigChangeListener
Implementation of
CorsPropertiesLoader that caches properties using guava cache.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidconfigChanged(String key, String newValue) loadProperties(String contextName) Loads Cors configuration properties for given contextName.voidsetPropertiesLoader(CorsPropertiesLoader propertiesLoader)
-
Constructor Details
-
GuavaCachedCorsPropertiesLoader
public GuavaCachedCorsPropertiesLoader()
-
-
Method Details
-
loadProperties
Description copied from interface:CorsPropertiesLoaderLoads Cors configuration properties for given contextName.- Specified by:
loadPropertiesin interfaceCorsPropertiesLoader- Parameters:
contextName- - name of web context to load properties for.- Returns:
- properties map
-
configChanged
- Specified by:
configChangedin interfaceConfigIntf.ConfigChangeListener
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setPropertiesLoader
-