Package com.jayway.jsonpath.spi.mapper
Class JacksonMappingProvider
- java.lang.Object
-
- com.jayway.jsonpath.spi.mapper.JacksonMappingProvider
-
- All Implemented Interfaces:
MappingProvider
public class JacksonMappingProvider extends java.lang.Object implements MappingProvider
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description JacksonMappingProvider()
JacksonMappingProvider(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)
-
-
-
Method Detail
-
map
public <T> T map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
- Specified by:
map
in interfaceMappingProvider
- Type Parameters:
T
- the mapped result type- Parameters:
source
- object to maptargetType
- the type the source object should be mapped toconfiguration
- 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 interfaceMappingProvider
- Type Parameters:
T
- the mapped result type- Parameters:
source
- object to maptargetType
- the type the source object should be mapped toconfiguration
- current configuration- Returns:
- return the mapped object
-
-