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

    Modifier and Type
    Method
    Description
    provide(io.micronaut.context.BeanLocator beanLocator, Class<?> converterType)
    Provide an instance of passed converter type class.
    boolean
    supports(Class<?> converterType)
    Does support providing an instance of this converter class.
  • Method Details

    • provide

      AttributeConverter<Object,Object> provide(io.micronaut.context.BeanLocator beanLocator, Class<?> converterType)
      Provide an instance of passed converter type class.
      Parameters:
      beanLocator - The bean locator
      converterType - The converter type
      Returns:
      the type converter represented by this converter type
    • supports

      boolean supports(Class<?> converterType)
      Does support providing an instance of this converter class.
      Parameters:
      converterType - The converter class.
      Returns:
      true if supports