java.lang.Object
io.github.astrapi69.json.factory.ObjectMapperFactory
The factory class
ObjectMapperFactory for creating ObjectMapper objects-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperFactory method for create a newObjectMapperstatic com.fasterxml.jackson.databind.ObjectMappernewObjectMapper(boolean newMapper) Factory method for create a newObjectMapper.static com.fasterxml.jackson.databind.ObjectMappernewObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory) Factory method for create a newObjectMapperwith the givenJsonFactorystatic com.fasterxml.jackson.databind.ObjectMappernewObjectMapper(Map<com.fasterxml.jackson.core.JsonParser.Feature, Boolean> jsonParserFeatures) Factory method for create a newObjectMapperwith the given map of json parser featuresstatic com.fasterxml.jackson.databind.ObjectMappernewObjectMapper(Map<com.fasterxml.jackson.core.JsonParser.Feature, Boolean> jsonParserFeatures, Map<com.fasterxml.jackson.core.JsonGenerator.Feature, Boolean> jsonGeneratorFeatures, Map<com.fasterxml.jackson.databind.DeserializationFeature, Boolean> deserializationFeatures, Map<com.fasterxml.jackson.databind.SerializationFeature, Boolean> serializationFeatures, Map<com.fasterxml.jackson.databind.cfg.DatatypeFeature, Boolean> datatypeFeatures) Factory method for create a newObjectMapperwith the given features
-
Method Details
-
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()Factory method for create a newObjectMapper- Returns:
- the new
ObjectMapper
-
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(boolean newMapper) Factory method for create a newObjectMapper. If the given flag is true a newObjectMapperwill be created otherwise the defaultObjectMapperwill be taken.- Parameters:
newMapper- flag that indicates if a newObjectMappershould be created, if true a newObjectMapperwill be created otherwise the defaultObjectMapperfrom this class will be returned.- Returns:
- the new
ObjectMapper
-
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(Map<com.fasterxml.jackson.core.JsonParser.Feature, Boolean> jsonParserFeatures) Factory method for create a newObjectMapperwith the given map of json parser features- Parameters:
jsonParserFeatures- the map with the json parser features for the newObjectMapper- Returns:
- the new
ObjectMapper
-
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(Map<com.fasterxml.jackson.core.JsonParser.Feature, Boolean> jsonParserFeatures, Map<com.fasterxml.jackson.core.JsonGenerator.Feature, Boolean> jsonGeneratorFeatures, Map<com.fasterxml.jackson.databind.DeserializationFeature, Boolean> deserializationFeatures, Map<com.fasterxml.jackson.databind.SerializationFeature, Boolean> serializationFeatures, Map<com.fasterxml.jackson.databind.cfg.DatatypeFeature, Boolean> datatypeFeatures) Factory method for create a newObjectMapperwith the given features- Parameters:
jsonParserFeatures- the map with the json parser features for the newObjectMapperjsonGeneratorFeatures- the map with the json generator features for the newObjectMapperdeserializationFeatures- the map with the json deserialization features for the newObjectMapperserializationFeatures- the map with the json serialization features for the newObjectMapperdatatypeFeatures- the map with the datatype features for the newObjectMapper- Returns:
- the new
ObjectMapper
-
newObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory) Factory method for create a newObjectMapperwith the givenJsonFactory- Parameters:
jsonFactory- theJsonFactoryobject- Returns:
- the new
ObjectMapper
-