Module xml.jackson.extensions
Class ObjectMapperFactory
java.lang.Object
io.github.astrapi69.xml.jackson.factory.ObjectMapperFactory
The factory class
ObjectMapperFactory
for creating ObjectMapper
objects-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
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
(Map<com.fasterxml.jackson.core.JsonParser.Feature, Boolean> features) Factory method for create a newObjectMapper
with 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 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(Map<com.fasterxml.jackson.core.JsonParser.Feature, 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
-