Class HashMapCachedCorsPropertiesLoader
java.lang.Object
de.hybris.platform.core.cors.loader.impl.HashMapCachedCorsPropertiesLoader
- All Implemented Interfaces:
CorsPropertiesLoader,ConfigIntf.ConfigChangeListener,org.springframework.beans.factory.InitializingBean
public class HashMapCachedCorsPropertiesLoader
extends Object
implements CorsPropertiesLoader, org.springframework.beans.factory.InitializingBean, ConfigIntf.ConfigChangeListener
ConcurrentHashMap backed implementation of CorsPropertiesLoader.-
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
-
HashMapCachedCorsPropertiesLoader
public HashMapCachedCorsPropertiesLoader()
-
-
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
-