Class DefaultAsContextAwareConverter<S,T,C>

java.lang.Object
de.hybris.platform.adaptivesearch.util.impl.DefaultAsContextAwareConverter<S,T,C>
All Implemented Interfaces:
ContextAwareConverter<S,T,C>

public class DefaultAsContextAwareConverter<S,T,C> extends Object implements ContextAwareConverter<S,T,C>
Default implementation of ContextAwareConverter.
  • Constructor Details

    • DefaultAsContextAwareConverter

      public DefaultAsContextAwareConverter()
  • Method Details

    • convert

      public T convert(S source, C context)
      Description copied from interface: ContextAwareConverter
      Converts the source object, creating a new instance of the destination type.
      Specified by:
      convert in interface ContextAwareConverter<S,T,C>
      Parameters:
      source - the source object
      Returns:
      the converted object
    • createTarget

      protected T createTarget()
    • getTargetClass

      public Class<T> getTargetClass()
    • setTargetClass

      public void setTargetClass(Class<T> targetClass)
    • getPopulators

      public List<ContextAwarePopulator<S,T,C>> getPopulators()
    • setPopulators

      public void setPopulators(List<ContextAwarePopulator<S,T,C>> populators)