Class GenieObjectMapper
java.lang.Object
com.netflix.genie.common.external.util.GenieObjectMapper
A singleton for sharing a Jackson Object Mapper instance across Genie and not having to redefine the Object Mapper
everywhere.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name of thePropertyFilter
used to serialize Genie exceptions.static final com.fasterxml.jackson.databind.ser.FilterProvider
TheFilterProvider
to be installed in theObjectMapper
. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
Get the preconfigured Object Mapper used across Genie for consistency.
-
Field Details
-
EXCEPTIONS_FILTER_NAME
The name of thePropertyFilter
used to serialize Genie exceptions.- See Also:
-
FILTER_PROVIDER
public static final com.fasterxml.jackson.databind.ser.FilterProvider FILTER_PROVIDERTheFilterProvider
to be installed in theObjectMapper
.
-
-
Method Details
-
getMapper
public static com.fasterxml.jackson.databind.ObjectMapper getMapper()Get the preconfigured Object Mapper used across Genie for consistency.- Returns:
- The object mapper to use
-