Package org.apache.pulsar.common.util
Class ObjectMapperFactory
java.lang.Object
org.apache.pulsar.common.util.ObjectMapperFactory
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clears the caches tied to the ObjectMapper instances and replaces the singleton ObjectMapper instance.static com.fasterxml.jackson.databind.ObjectMapper
create()
static com.fasterxml.jackson.databind.ObjectMapper
static com.fasterxml.jackson.databind.ObjectMapper
Deprecated.static com.fasterxml.jackson.databind.ObjectMapper
Deprecated.
-
Constructor Details
-
ObjectMapperFactory
public ObjectMapperFactory()
-
-
Method Details
-
create
public static com.fasterxml.jackson.databind.ObjectMapper create() -
createYaml
public static com.fasterxml.jackson.databind.ObjectMapper createYaml() -
getMapper
-
getMapperWithIncludeAlways
-
getThreadLocal
Deprecated.This method is deprecated. UsegetMapper()
andObjectMapperFactory.MapperReference.getObjectMapper()
-
getYamlMapper
-
getThreadLocalYaml
Deprecated.This method is deprecated. UsegetYamlMapper()
andObjectMapperFactory.MapperReference.getObjectMapper()
-
clearCaches
public static void clearCaches()Clears the caches tied to the ObjectMapper instances and replaces the singleton ObjectMapper instance. This can be used in tests to ensure that classloaders and class references don't leak across tests.
-