I need to autowire my GdsClientHandler I have tried autowiring through constructor, setter methods but still it returns to be null.
@Mapper(componentModel = "spring")
public abstract class SaveHistoryBOToEntityMapper {
@Autowired
private GdsClientHandler gdsClientHandler;
public Set<String> getCityName(final Set<Long> cityIdList, final String countryCode) {
Set<String> cityList = new HashSet<String>();
if(cityIdList.isEmpty() || countryCode==null)
{
return cityList;
}
else
{ cityList = cityIdList.stream().map(cityId -> this.gdsClientHandler.findCityByCountryCode(countryCode, cityId).getCityName()).collect(Collectors.toSet());
return cityList;}
}