Interface AttributeConverterProvider
-
@Internal public interface AttributeConverterProviderIntended to support different implementation of attribute converters like JPA's 'jakarta.persistence.AttributeConverter'.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.micronaut.data.model.runtime.convert.AttributeConverter<java.lang.Object,java.lang.Object>provide(io.micronaut.context.BeanLocator beanLocator, java.lang.Class<?> converterType)Provide an instance of passed converter type class.booleansupports(java.lang.Class<?> converterType)Does support providing an instance of this converter class.
-
-
-
Method Detail
-
provide
io.micronaut.data.model.runtime.convert.AttributeConverter<java.lang.Object,java.lang.Object> provide(io.micronaut.context.BeanLocator beanLocator, java.lang.Class<?> converterType)Provide an instance of passed converter type class.- Parameters:
beanLocator- The bean locatorconverterType- The converter type- Returns:
- the type converter represented by this converter type
-
supports
boolean supports(java.lang.Class<?> converterType)
Does support providing an instance of this converter class.- Parameters:
converterType- The converter class.- Returns:
- true if supports
-
-