I had custom converter for dozer framework
constom converter called for generic type list source and generic type list destination
public class ListCommonCustomConverter implements ConfigurableCustomConverter{
public Object convert(Object destination, Object source, Class<?> destinationClass, Class<?> sourceClass) {
log.info("Inside CommonCustomConverter :: convert");
// Need to fine generic type of list
return null;
}
}
Eg: if List<Person> passed as destination for converter i need to get Person class from destination object inside converter method.
Thank in Advance.