Interface AttributeConverterProvider
-
@Internal public interface AttributeConverterProvider
Intended to support different implementation of attribute converters like JPA's 'jakarta.persistence.AttributeConverter'.- Since:
- 3.1
- Author:
- Denis Stepanov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.boolean
supports(java.lang.Class<?> converterType)
Does support providing an instance of this converter class.
-
-
-
Method Detail
-
provide
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
-
-