Annotation Type SpringMapperConfig


  • @Target(TYPE)
    @Retention(SOURCE)
    public @interface SpringMapperConfig
    Marks a class or interface as configuration source for the Spring extension. There can be only one annotated type in each compiled module.
    • Field Detail

      • DEFAULT_CONVERSION_SERVICE_BEAN_NAME

        static final java.lang.String DEFAULT_CONVERSION_SERVICE_BEAN_NAME
      • DEFAULT_ADAPTER_CLASS_NAME

        static final java.lang.String DEFAULT_ADAPTER_CLASS_NAME
      • DEFAULT_CONFIGURATION_CLASS_NAME

        static final java.lang.String DEFAULT_CONFIGURATION_CLASS_NAME
    • Element Detail

      • converterRegistrationConfigurationClassName

        java.lang.String converterRegistrationConfigurationClassName
        The class name for the generated Configuration class, which is performing auto-registration of converters/mappers to Spring's ConversionService.
        Returns:
        The class name for the generated Configuration.
        Default:
        "ConverterRegistrationConfiguration"
      • conversionServiceAdapterPackage

        java.lang.String conversionServiceAdapterPackage
        The package name for the generated Adapter between the MapStruct mappers and Spring's ConversionService. If omitted or empty, the package name will be the same as the one for the annotated type.
        Returns:
        The package name for the generated Adapter.
        Default:
        ""
      • conversionServiceAdapterClassName

        java.lang.String conversionServiceAdapterClassName
        The class name for the generated Adapter between the MapStruct mappers and Spring's ConversionService.
        Returns:
        The class name for the generated Adapter.
        Default:
        "ConversionServiceAdapter"
      • conversionServiceBeanName

        java.lang.String conversionServiceBeanName
        The bean name for the Spring ConversionService to use.
        Returns:
        The bean name for the Spring ConversionService.
        Default:
        "conversionService"
      • lazyAnnotatedConversionServiceBean

        boolean lazyAnnotatedConversionServiceBean
        To set if the Lazy annotation will be added to the ConversionService's usage in the ConversionServiceAdapter. Defaults to true.
        Returns:
        true to add the Lazy annotation
        Default:
        true
      • externalConversions

        ExternalConversion[] externalConversions
        Additional conversions which should be made available through the generated Adapter.
        Returns:
        Additional conversions which should be made available through the generated Adapter.
        Default:
        {}