Class JsonPropertyAccessor
java.lang.Object
org.springframework.integration.json.JsonPropertyAccessor
- All Implemented Interfaces:
PropertyAccessor,TargetedAccessor
@Deprecated(forRemoval=true,
since="7.0")
public class JsonPropertyAccessor
extends Object
implements PropertyAccessor
Deprecated, for removal: This API element is subject to removal in a future version.
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, Sam Brannen
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead(EvaluationContext context, Object target, String name) Deprecated, for removal: This API element is subject to removal in a future version.booleancanWrite(EvaluationContext context, Object target, String name) Deprecated, for removal: This API element is subject to removal in a future version.Class<?>[]Deprecated, for removal: This API element is subject to removal in a future version.read(EvaluationContext context, @Nullable Object target, String name) Deprecated, for removal: This API element is subject to removal in a future version.voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated, for removal: This API element is subject to removal in a future version.static Objectwrap(com.fasterxml.jackson.databind.JsonNode json) Deprecated, for removal: This API element is subject to removal in a future version.voidwrite(EvaluationContext context, Object target, String name, Object newValue) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
JsonPropertyAccessor
public JsonPropertyAccessor()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated, for removal: This API element is subject to removal in a future version. -
getSpecificTargetClasses
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSpecificTargetClassesin interfaceTargetedAccessor
-
canRead
public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
canReadin interfacePropertyAccessor- Throws:
AccessException
-
read
public TypedValue read(EvaluationContext context, @Nullable Object target, String name) throws AccessException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
readin interfacePropertyAccessor- Throws:
AccessException
-
canWrite
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
canWritein interfacePropertyAccessor
-
write
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writein interfacePropertyAccessor
-
wrap
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
AccessException
-
JacksonPropertyAccessorfor Jackson 3.