Search code examples
micronaut

Custom TypeConverter that receives a few objects and converts them to another object


I'd like to create a custom TypeConverter that receives a few objects and converts them to another object. E.g. to convert (MyEntity, AdditionalEntity, locale) to MyDto.

Is there any way to pass a few objects to a TypeConverter except creating a DTO (MyEntity, AdditionalEntity, locale)?


Solution

  • No, the conversion service only accepts a single object