类 ObjectMapperFactory
java.lang.Object
org.apache.pulsar.common.util.ObjectMapperFactory
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidClears the caches tied to the ObjectMapper instances and replaces the singleton ObjectMapper instance.static com.fasterxml.jackson.databind.ObjectMappercreate()static com.fasterxml.jackson.databind.ObjectMapperstatic com.fasterxml.jackson.databind.ObjectMapper已过时。static com.fasterxml.jackson.databind.ObjectMapper已过时。
-
构造器详细资料
-
ObjectMapperFactory
public ObjectMapperFactory()
-
-
方法详细资料
-
create
public static com.fasterxml.jackson.databind.ObjectMapper create() -
createYaml
public static com.fasterxml.jackson.databind.ObjectMapper createYaml() -
getMapper
-
getMapperWithIncludeAlways
-
getThreadLocal
已过时。This method is deprecated. UsegetMapper()andObjectMapperFactory.MapperReference.getObjectMapper() -
getYamlMapper
-
getThreadLocalYaml
已过时。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.
-