INT-3130: Add result-type to <o-to-j-transformer>
JIRA: https://jira.springsource.org/browse/INT-3130 * add `result-type` attribute to the `<object-to-json-transformer>` based on enumeration values: `STRING`, `NODE` * Provide implementations for methods to convert value to the node representation * Refactoring according new generic option in the `JsonObjectMapper` * Add tests and documentation Need Migration Guide note according this refactoring INT-3130: remove some deprecation and JavaDocs Addressed PR comments Doc Polishing
This commit is contained in:
committed by
Gary Russell
parent
9005938ab5
commit
062e7bc9d2
@@ -48,7 +48,7 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class MapJsonSerializer implements Serializer<Map<?, ?>>, Deserializer<Map<?, ?>> {
|
||||
|
||||
private volatile JsonObjectMapper<?> jsonObjectMapper = JacksonJsonObjectMapperProvider.newInstance();
|
||||
private volatile JsonObjectMapper<?, ?> jsonObjectMapper = JacksonJsonObjectMapperProvider.newInstance();
|
||||
|
||||
private volatile Deserializer<byte[]> packetDeserializer = new ByteArrayLfSerializer();
|
||||
|
||||
@@ -59,7 +59,7 @@ public class MapJsonSerializer implements Serializer<Map<?, ?>>, Deserializer<Ma
|
||||
* JSON. Use this if you wish to set additional {@link JsonObjectMapper} implementation features.
|
||||
* @param jsonObjectMapper the jsonObjectMapper.
|
||||
*/
|
||||
public void setJsonObjectMapper(JsonObjectMapper<?> jsonObjectMapper) {
|
||||
public void setJsonObjectMapper(JsonObjectMapper<?, ?> jsonObjectMapper) {
|
||||
Assert.notNull(jsonObjectMapper, "'jsonObjectMapper' cannot be null");
|
||||
this.jsonObjectMapper = jsonObjectMapper;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user