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 JSON| Modifier 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.TypeModifierpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2020. All rights reserved.