Class AuditConversionServiceImpl

java.lang.Object
io.jmix.data.impl.converters.AuditConversionServiceImpl
All Implemented Interfaces:
AuditConversionService

@Component("data_AuditConversionService") public class AuditConversionServiceImpl extends Object implements AuditConversionService
Default implementation to support common types. Instantiate this bean and add custom converters to support different date/time and user types.
  • Constructor Details

    • AuditConversionServiceImpl

      public AuditConversionServiceImpl()
  • Method Details

    • canConvert

      public boolean canConvert(@Nullable Class<?> sourceType, Class<?> targetType)
      Specified by:
      canConvert in interface AuditConversionService
      See Also:
      • ConversionService.canConvert(Class, Class)
    • convert

      public <T> T convert(@Nullable Object source, Class<T> targetType)
      Specified by:
      convert in interface AuditConversionService
      See Also:
      • ConversionService.convert(Object, Class)
    • addConverter

      public void addConverter(org.springframework.core.convert.converter.Converter<?,?> converter)
    • addConverters

      public void addConverters(Collection<org.springframework.core.convert.converter.Converter<?,?>> converters)
    • getConversionService

      public org.springframework.core.convert.support.GenericConversionService getConversionService()