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 Object
implements RuleParameterValueNormalizerStrategy, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation of
RuleParameterValueNormalizerStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.springframework.context.ApplicationContextprotected Map<String,RuleParameterValueNormalizer> Normalizes provided value based on the criteria matching given typevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
DefaultRuleParameterValueNormalizerStrategy
public DefaultRuleParameterValueNormalizerStrategy()
-
-
Method Details
-
normalize
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
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-