Class DefaultRuleParameterValueNormalizerStrategy
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.strategies.impl.DefaultRuleParameterValueNormalizerStrategy
-
- All Implemented Interfaces:
RuleParameterValueNormalizerStrategy,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class DefaultRuleParameterValueNormalizerStrategy extends java.lang.Object implements RuleParameterValueNormalizerStrategy, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation ofRuleParameterValueNormalizerStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleParameterValueNormalizerStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected org.springframework.context.ApplicationContextgetApplicationContext()protected java.util.Map<java.lang.String,RuleParameterValueNormalizer>getValueNormalizers()java.lang.Objectnormalize(java.lang.Object value, java.lang.String type)Normalizes provided value based on the criteria matching given typevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
normalize
public java.lang.Object normalize(java.lang.Object value, java.lang.String type)Description copied from interface:RuleParameterValueNormalizerStrategyNormalizes provided value based on the criteria matching given type- Specified by:
normalizein interfaceRuleParameterValueNormalizerStrategy- Parameters:
value- - the string value to be convertedtype- - parameter type- Returns:
- the normalized value for the required type
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getValueNormalizers
protected java.util.Map<java.lang.String,RuleParameterValueNormalizer> getValueNormalizers()
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
-