Class JacksonMappingProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.fasterxml.jackson.databind.ObjectMapper objectMapper  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T map​(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)  
      <T> T map​(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • objectMapper

        private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • JacksonMappingProvider

        public JacksonMappingProvider()
      • JacksonMappingProvider

        public JacksonMappingProvider​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • map

        public <T> T map​(java.lang.Object source,
                         java.lang.Class<T> targetType,
                         Configuration configuration)
        Specified by:
        map in interface MappingProvider
        Type Parameters:
        T - the mapped result type
        Parameters:
        source - object to map
        targetType - the type the source object should be mapped to
        configuration - current configuration
        Returns:
        return the mapped object
      • map

        public <T> T map​(java.lang.Object source,
                         TypeRef<T> targetType,
                         Configuration configuration)
        Specified by:
        map in interface MappingProvider
        Type Parameters:
        T - the mapped result type
        Parameters:
        source - object to map
        targetType - the type the source object should be mapped to
        configuration - current configuration
        Returns:
        return the mapped object