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 java.lang.Object implements ContextAwareConverter<S,T,C>
Default implementation ofContextAwareConverter.
-
-
Constructor Summary
Constructors Constructor Description DefaultAsContextAwareConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tconvert(S source, C context)Converts the source object, creating a new instance of the destination type.protected TcreateTarget()java.util.List<ContextAwarePopulator<S,T,C>>getPopulators()java.lang.Class<T>getTargetClass()voidsetPopulators(java.util.List<ContextAwarePopulator<S,T,C>> populators)voidsetTargetClass(java.lang.Class<T> targetClass)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.adaptivesearch.util.ContextAwareConverter
convertAll
-
-
-
-
Method Detail
-
convert
public T convert(S source, C context)
Description copied from interface:ContextAwareConverterConverts the source object, creating a new instance of the destination type.- Specified by:
convertin interfaceContextAwareConverter<S,T,C>- Parameters:
source- the source object- Returns:
- the converted object
-
createTarget
protected T createTarget()
-
getTargetClass
public java.lang.Class<T> getTargetClass()
-
setTargetClass
public void setTargetClass(java.lang.Class<T> targetClass)
-
getPopulators
public java.util.List<ContextAwarePopulator<S,T,C>> getPopulators()
-
setPopulators
public void setPopulators(java.util.List<ContextAwarePopulator<S,T,C>> populators)
-
-