Package io.github.astrapi69.json.factory
Class ObjectMapperFactory
- java.lang.Object
-
- io.github.astrapi69.json.factory.ObjectMapperFactory
-
public final class ObjectMapperFactory extends java.lang.ObjectThe factory classObjectMapperFactoryfor creatingObjectMapperobjects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMappernewObjectMapper()Factory 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(java.util.Map<com.fasterxml.jackson.core.JsonParser.Feature,java.lang.Boolean> features)Factory method for create a newObjectMapperwith the given features
-
-
-
Method Detail
-
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(java.util.Map<com.fasterxml.jackson.core.JsonParser.Feature,java.lang.Boolean> features)
Factory method for create a newObjectMapperwith the given features- Parameters:
features- the 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
-
-