public class WrapperOverrideTypeModifier
extends com.fasterxml.jackson.databind.type.TypeModifier
implements org.springframework.context.ApplicationContextAware
TypeModifier
that looks up types in the application context for wrapper overrides.
This allows for correct instantiation to occur when wrappers have been overridden and a client is actually sending JSONModifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
Constructor and Description |
---|
WrapperOverrideTypeModifier() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JavaType |
modifyType(com.fasterxml.jackson.databind.JavaType type,
Type jdkType,
com.fasterxml.jackson.databind.type.TypeBindings context,
com.fasterxml.jackson.databind.type.TypeFactory typeFactory) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected org.springframework.context.ApplicationContext applicationContext
public com.fasterxml.jackson.databind.JavaType modifyType(com.fasterxml.jackson.databind.JavaType type, Type jdkType, com.fasterxml.jackson.databind.type.TypeBindings context, com.fasterxml.jackson.databind.type.TypeFactory typeFactory)
modifyType
in class com.fasterxml.jackson.databind.type.TypeModifier
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2020. All rights reserved.