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 Details

    • DefaultRuleParameterValueNormalizerStrategy

      public DefaultRuleParameterValueNormalizerStrategy()
  • Method Details

    • normalize

      public Object normalize(Object value, String type)
      Description copied from interface: RuleParameterValueNormalizerStrategy
      Normalizes provided value based on the criteria matching given type
      Specified by:
      normalize in interface RuleParameterValueNormalizerStrategy
      Parameters:
      value - - the string value to be converted
      type - - parameter type
      Returns:
      the normalized value for the required type
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getValueNormalizers

      protected Map<String,RuleParameterValueNormalizer> getValueNormalizers()
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware