Package io.github.astrapi69.json.factory
Class ObjectMapperFactory
- java.lang.Object
-
- io.github.astrapi69.json.factory.ObjectMapperFactory
-
public final class ObjectMapperFactory extends java.lang.Object
The factory classObjectMapperFactory
for creatingObjectMapper
objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
newJaxbObjectMapper()
Factory method for create a newObjectMapper
with a JAXB introspector and the default instance ofTypeFactory
static com.fasterxml.jackson.databind.ObjectMapper
newObjectMapper()
Factory method for create a newObjectMapper
static com.fasterxml.jackson.databind.ObjectMapper
newObjectMapper(boolean newMapper)
Factory method for create a newObjectMapper
.static com.fasterxml.jackson.databind.ObjectMapper
newObjectMapper(com.fasterxml.jackson.core.JsonFactory jsonFactory)
Factory method for create a newObjectMapper
with the givenJsonFactory
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 newObjectMapper
with 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 newObjectMapper
will be created otherwise the defaultObjectMapper
will be taken.- Parameters:
newMapper
- flag that indicates if a newObjectMapper
should be created, if true a newObjectMapper
will be created otherwise the defaultObjectMapper
from 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 newObjectMapper
with 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 newObjectMapper
with the givenJsonFactory
- Parameters:
jsonFactory
- theJsonFactory
object- Returns:
- the new
ObjectMapper
-
newJaxbObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper newJaxbObjectMapper()
Factory method for create a newObjectMapper
with a JAXB introspector and the default instance ofTypeFactory
- Returns:
- the new
ObjectMapper
-
-