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 java.lang.Object implements CorsPropertiesLoader, org.springframework.beans.factory.InitializingBean, ConfigIntf.ConfigChangeListener
ConcurrentHashMapbacked implementation ofCorsPropertiesLoader.
-
-
Constructor Summary
Constructors Constructor Description HashMapCachedCorsPropertiesLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidconfigChanged(java.lang.String key, java.lang.String newValue)com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>loadProperties(java.lang.String contextName)Loads Cors configuration properties for given contextName.voidsetPropertiesLoader(CorsPropertiesLoader propertiesLoader)
-
-
-
Method Detail
-
loadProperties
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> loadProperties(java.lang.String contextName)
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
public void configChanged(java.lang.String key, java.lang.String newValue)- Specified by:
configChangedin interfaceConfigIntf.ConfigChangeListener
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
setPropertiesLoader
public void setPropertiesLoader(CorsPropertiesLoader propertiesLoader)
-
-