public class JsonPropertyAccessor extends Object implements org.springframework.expression.PropertyAccessor
PropertyAccessor that knows how to read on Jackson JSON objects.| Modifier and Type | Class and Description |
|---|---|
static class |
JsonPropertyAccessor.ToStringFriendlyJsonNode |
| Constructor and Description |
|---|
JsonPropertyAccessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(org.springframework.expression.EvaluationContext context,
Object target,
String name) |
boolean |
canWrite(org.springframework.expression.EvaluationContext context,
Object target,
String name) |
Class<?>[] |
getSpecificTargetClasses() |
org.springframework.expression.TypedValue |
read(org.springframework.expression.EvaluationContext context,
Object target,
String name) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
void |
write(org.springframework.expression.EvaluationContext context,
Object target,
String name,
Object newValue) |
public Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessorpublic boolean canRead(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
canRead in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessExceptionpublic org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
read in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessExceptionpublic boolean canWrite(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
canWrite in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessExceptionpublic void write(org.springframework.expression.EvaluationContext context,
Object target,
String name,
Object newValue)
throws org.springframework.expression.AccessException
write in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessExceptionpublic void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)