Class DefaultRuleParameterValueMapperStrategy
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.strategies.impl.DefaultRuleParameterValueMapperStrategy
-
- All Implemented Interfaces:
RuleParameterValueMapperStrategy,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class DefaultRuleParameterValueMapperStrategy extends java.lang.Object implements RuleParameterValueMapperStrategy, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.regex.PatternLIST_PATTERNprotected static java.util.regex.PatternMAP_PATTERN
-
Constructor Summary
Constructors Constructor Description DefaultRuleParameterValueMapperStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.lang.ObjectfromRuleParameter(java.lang.Object value, java.lang.String type)protected org.springframework.context.ApplicationContextgetApplicationContext()protected java.util.List<java.lang.Object>getAsList(java.util.List<java.lang.Object> value, java.lang.String type, java.util.function.BiFunction<java.lang.Object,java.lang.String,java.lang.Object> valueSupplier)protected java.util.Map<java.lang.Object,java.lang.Object>getAsMap(java.util.Map<java.lang.Object,java.lang.Object> value, java.lang.String type, java.util.function.BiFunction<java.lang.Object,java.lang.String,java.lang.Object> valueSupplier)protected java.util.Map<java.lang.String,RuleParameterValueMapper>getMappers()protected java.util.Set<java.lang.String>getSupportedTypes()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetSupportedTypes(java.util.Set<java.lang.String> supportedTypes)java.lang.ObjecttoRuleParameter(java.lang.Object value, java.lang.String type)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
toRuleParameter
public java.lang.Object toRuleParameter(java.lang.Object value, java.lang.String type)- Specified by:
toRuleParameterin interfaceRuleParameterValueMapperStrategy
-
getAsMap
protected java.util.Map<java.lang.Object,java.lang.Object> getAsMap(java.util.Map<java.lang.Object,java.lang.Object> value, java.lang.String type, java.util.function.BiFunction<java.lang.Object,java.lang.String,java.lang.Object> valueSupplier)
-
getAsList
protected java.util.List<java.lang.Object> getAsList(java.util.List<java.lang.Object> value, java.lang.String type, java.util.function.BiFunction<java.lang.Object,java.lang.String,java.lang.Object> valueSupplier)
-
fromRuleParameter
public java.lang.Object fromRuleParameter(java.lang.Object value, java.lang.String type)- Specified by:
fromRuleParameterin interfaceRuleParameterValueMapperStrategy
-
getSupportedTypes
protected java.util.Set<java.lang.String> getSupportedTypes()
-
setSupportedTypes
public void setSupportedTypes(java.util.Set<java.lang.String> supportedTypes)
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getMappers
protected java.util.Map<java.lang.String,RuleParameterValueMapper> getMappers()
-
-