Class DefaultPropertyEvaluator

java.lang.Object
de.hybris.platform.acceleratorservices.velocity.eval.DefaultPropertyEvaluator
All Implemented Interfaces:
PropertyEvaluator

public class DefaultPropertyEvaluator extends Object implements PropertyEvaluator
Object available in the velocity context.
  • Constructor Details

  • Method Details

    • load

      public Collection<? extends EvaluatedRow<?,?>> load(String resourceId)
      Description copied from interface: PropertyEvaluator
      Method which loads a given resource. The resource is a identifier used to build a physical path to property file containing localized attribute values. Method returns collection of evaluated rows. See EvaluatedRow for more details.
      Specified by:
      load in interface PropertyEvaluator
    • load

      public Collection<? extends EvaluatedRow<?,?>> load(String resourceId, String key)
      Description copied from interface: PropertyEvaluator
      Method which loads a given resource. The resource is a identifier used to build a physical path to property file containing localized attribute values. Adds additional key for filtering out localized properties not matching given type. Method returns collection of evaluated rows. See EvaluatedRow for more details.
      Specified by:
      load in interface PropertyEvaluator
    • loadProperties

      protected Map loadProperties(org.springframework.core.io.Resource localizedPropertyResource)
    • setRowEvaluator

      public void setRowEvaluator(RowsEvaluator<? extends EvaluatedRow<?,?>,?> rowEvaluator)
      Specified by:
      setRowEvaluator in interface PropertyEvaluator
    • getRowEvaluator

      protected RowsEvaluator<? extends EvaluatedRow<?,?>,?> getRowEvaluator(Map properties)
      Factory method to create a specific RowsEvaluator
    • getDefaultResourceLoader

      protected org.springframework.core.io.DefaultResourceLoader getDefaultResourceLoader()