Class JsonPropertyAccessor
java.lang.Object
org.springframework.integration.json.JsonPropertyAccessor
- All Implemented Interfaces:
 PropertyAccessor
A SpEL 
PropertyAccessor that knows how to read properties from JSON objects.
 Uses Jackson JsonNode API for nested properties access.- Since:
 - 3.0
 - Author:
 - Eric Bottard, Artem Bilan, Paul Martin, Gary Russell, Pierre Lakreb, Vladislav Fefelov
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead(EvaluationContext context, Object target, String name) booleancanWrite(EvaluationContext context, Object target, String name) Class<?>[]read(EvaluationContext context, Object target, String name) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) static Objectwrap(com.fasterxml.jackson.databind.JsonNode json) voidwrite(EvaluationContext context, Object target, String name, Object newValue)  
- 
Constructor Details
- 
JsonPropertyAccessor
public JsonPropertyAccessor() 
 - 
 - 
Method Details
- 
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)  - 
getSpecificTargetClasses
- Specified by:
 getSpecificTargetClassesin interfacePropertyAccessor
 - 
canRead
public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException - Specified by:
 canReadin interfacePropertyAccessor- Throws:
 AccessException
 - 
read
public TypedValue read(EvaluationContext context, @Nullable Object target, String name) throws AccessException - Specified by:
 readin interfacePropertyAccessor- Throws:
 AccessException
 - 
canWrite
- Specified by:
 canWritein interfacePropertyAccessor
 - 
write
- Specified by:
 writein interfacePropertyAccessor
 - 
wrap
- Throws:
 AccessException
 
 -