Package com.jayway.jsonpath.spi.mapper
Class JacksonMappingProvider
java.lang.Object
com.jayway.jsonpath.spi.mapper.JacksonMappingProvider
- All Implemented Interfaces:
MappingProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonMappingProvider
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescription<T> T
map
(Object source, TypeRef<T> targetType, Configuration configuration) <T> T
map
(Object source, Class<T> targetType, Configuration configuration)
-
Field Details
-
objectMapper
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
JacksonMappingProvider
public JacksonMappingProvider() -
JacksonMappingProvider
public JacksonMappingProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
map
- 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
- 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
-