Class DefaultFacetSearchConfigMapper

java.lang.Object
ma.glasnost.orika.impl.ConfigurableMapper
de.hybris.platform.solrfacetsearch.config.mapping.DefaultFacetSearchConfigMapper
All Implemented Interfaces:
ma.glasnost.orika.MapperFacade, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class DefaultFacetSearchConfigMapper extends ma.glasnost.orika.impl.ConfigurableMapper implements org.springframework.context.ApplicationContextAware
Implementation of ConfigurableMapper used for cloning FacetSearchConfig.
It automatically discovers and registers managed beans of type Mapper, Converter or Filter annotated with FacetSearchConfigMapping.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
     
    protected ma.glasnost.orika.MapperFactory
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Registers all managed beans of type Mapper, Converter or Filter and annotated with FacetSearchConfigMapping.
    void
    addConverter(ma.glasnost.orika.Converter<?,?> converter)
    Registers a Converter.
    void
    addFilter(ma.glasnost.orika.Filter<?,?> filter)
    Registers a Filter.
    void
    addMapper(ma.glasnost.orika.Mapper<?,?> mapper)
    Registers a Mapper.
    protected void
    configure(ma.glasnost.orika.MapperFactory mapperFactory)
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     

    Methods inherited from class ma.glasnost.orika.impl.ConfigurableMapper

    configureFactoryBuilder, convert, convert, dedicatedMapperFor, dedicatedMapperFor, dedicatedMapperFor, dedicatedMapperFor, factoryModified, init, map, map, map, map, map, map, map, map, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsArray, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsCollection, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsList, mapAsMap, mapAsMap, mapAsMap, mapAsMap, mapAsMap, mapAsMap, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, mapAsSet, newObject, resolveMappingStrategy

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mapperFactory

      protected ma.glasnost.orika.MapperFactory mapperFactory
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Method Details

    • configure

      protected void configure(ma.glasnost.orika.MapperFactory mapperFactory)
      Overrides:
      configure in class ma.glasnost.orika.impl.ConfigurableMapper
    • addAllSpringBeans

      protected void addAllSpringBeans()
      Registers all managed beans of type Mapper, Converter or Filter and annotated with FacetSearchConfigMapping.
    • addConverter

      public void addConverter(ma.glasnost.orika.Converter<?,?> converter)
      Registers a Converter.
      Parameters:
      converter - The converter.
    • addMapper

      public void addMapper(ma.glasnost.orika.Mapper<?,?> mapper)
      Registers a Mapper.
      Parameters:
      mapper - The mapper.
    • addFilter

      public void addFilter(ma.glasnost.orika.Filter<?,?> filter)
      Registers a Filter.
      Parameters:
      filter - The filter.
    • setApplicationContext

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