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 TypeMethodDescriptionboolean
canRead
(EvaluationContext context, Object target, String name) Deprecated, for removal: This API element is subject to removal in a future version.boolean
canWrite
(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.void
setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated, for removal: This API element is subject to removal in a future version.static Object
wrap
(com.fasterxml.jackson.databind.JsonNode json) Deprecated, for removal: This API element is subject to removal in a future version.void
write
(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:
getSpecificTargetClasses
in 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:
canRead
in 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:
read
in interfacePropertyAccessor
- Throws:
AccessException
-
canWrite
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
canWrite
in interfacePropertyAccessor
-
write
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
write
in interfacePropertyAccessor
-
wrap
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
AccessException
-
JacksonPropertyAccessor
for Jackson 3.