Package io.jmix.data.impl.converters
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConverter
(org.springframework.core.convert.converter.Converter<?, ?> converter) void
addConverters
(Collection<org.springframework.core.convert.converter.Converter<?, ?>> converters) boolean
canConvert
(Class<?> sourceType, Class<?> targetType) <T> T
org.springframework.core.convert.support.GenericConversionService
-
Constructor Details
-
AuditConversionServiceImpl
public AuditConversionServiceImpl()
-
-
Method Details
-
canConvert
- Specified by:
canConvert
in interfaceAuditConversionService
- See Also:
-
ConversionService.canConvert(Class, Class)
-
convert
- Specified by:
convert
in interfaceAuditConversionService
- 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()
-