Class DomainMapperAutoConfiguration.ModelMapperDescriptorConfig

java.lang.Object
com.broadleafcommerce.data.tracking.core.autoconfigure.DomainMapperAutoConfiguration.ModelMapperDescriptorConfig
Enclosing class:
DomainMapperAutoConfiguration

@Configuration @ConditionalOnProperty(name="broadleaf.modelmapper.descriptor.enabled", havingValue="true", matchIfMissing=true) @EnableConfigurationProperties(ModelMapperDescriptorProperties.class) public static class DomainMapperAutoConfiguration.ModelMapperDescriptorConfig extends Object
Configuration for the description-based ModelMapper cache.

Gated on broadleaf.modelmapper.descriptor.enabled so that an application running the legacy Kryo cache does not construct the registry or perform its classpath scan at all.

  • Constructor Details

    • ModelMapperDescriptorConfig

      public ModelMapperDescriptorConfig()
  • Method Details

    • modelMapperDescriptorRegistry

      @Bean @ConditionalOnMissingBean public ModelMapperDescriptorRegistry modelMapperDescriptorRegistry(ModelMapperDescriptorProperties properties)
      The registry deliberately builds its own ObjectMapper. Descriptors are a wire format shared between a build that writes them and a runtime that reads them, so an application-level naming strategy or visibility setting must not be able to make shipped classpath descriptors unreadable.