public class SpringHandlerInstantiator extends HandlerInstantiator
JsonSerializer
, JsonDeserializer
,
KeyDeserializer
, TypeResolverBuilder
, TypeIdResolver
)
beans with autowiring against a Spring ApplicationContext
.Jackson2ObjectMapperBuilder.handlerInstantiator(HandlerInstantiator)
,
ApplicationContext.getAutowireCapableBeanFactory()
,
HandlerInstantiator
Constructor and Description |
---|
SpringHandlerInstantiator(AutowireCapableBeanFactory beanFactory)
Create a new SpringHandlerInstantiator for the given BeanFactory.
|
Modifier and Type | Method and Description |
---|---|
JsonDeserializer<?> |
deserializerInstance(DeserializationConfig config,
Annotated annotated,
Class<?> implClass) |
KeyDeserializer |
keyDeserializerInstance(DeserializationConfig config,
Annotated annotated,
Class<?> implClass) |
JsonSerializer<?> |
serializerInstance(SerializationConfig config,
Annotated annotated,
Class<?> implClass) |
TypeIdResolver |
typeIdResolverInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> implClass) |
TypeResolverBuilder<?> |
typeResolverBuilderInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> implClass) |
converterInstance, namingStrategyInstance, objectIdGeneratorInstance, valueInstantiatorInstance
public SpringHandlerInstantiator(AutowireCapableBeanFactory beanFactory)
beanFactory
- the target BeanFactorypublic JsonDeserializer<?> deserializerInstance(DeserializationConfig config, Annotated annotated, Class<?> implClass)
deserializerInstance
in class HandlerInstantiator
public KeyDeserializer keyDeserializerInstance(DeserializationConfig config, Annotated annotated, Class<?> implClass)
keyDeserializerInstance
in class HandlerInstantiator
public JsonSerializer<?> serializerInstance(SerializationConfig config, Annotated annotated, Class<?> implClass)
serializerInstance
in class HandlerInstantiator
public TypeResolverBuilder<?> typeResolverBuilderInstance(MapperConfig<?> config, Annotated annotated, Class<?> implClass)
typeResolverBuilderInstance
in class HandlerInstantiator
public TypeIdResolver typeIdResolverInstance(MapperConfig<?> config, Annotated annotated, Class<?> implClass)
typeIdResolverInstance
in class HandlerInstantiator