Class CachedDTOToEntityPathMapper

java.lang.Object
in.co.akshitbansal.springwebquery.pathmapper.DTOToEntityPathMapper
in.co.akshitbansal.springwebquery.pathmapper.CachedDTOToEntityPathMapper

public class CachedDTOToEntityPathMapper extends DTOToEntityPathMapper
Cached DTOToEntityPathMapper variant that memoizes both successful and failed path resolutions.
  • Method Details

    • map

      public DTOToEntityPathMapper.MappingResult map(@NonNull @NonNull String dtoPath)
      Resolves a DTO path, serving the result from cache whenever possible.
      Overrides:
      map in class DTOToEntityPathMapper
      Parameters:
      dtoPath - selector path expressed against the DTO contract
      Returns:
      cached or freshly resolved mapping result