Class WrapperOverrideTypeModifier

java.lang.Object
tools.jackson.databind.type.TypeModifier
com.broadleafcommerce.rest.api.WrapperOverrideTypeModifier
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class WrapperOverrideTypeModifier extends tools.jackson.databind.type.TypeModifier implements org.springframework.context.ApplicationContextAware
Provides an implementation of a 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
Author:
Phillip Verheyden (phillipuniverse)
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • WrapperOverrideTypeModifier

      public WrapperOverrideTypeModifier()
  • Method Details

    • modifyType

      public tools.jackson.databind.JavaType modifyType(tools.jackson.databind.JavaType type, Type jdkType, tools.jackson.databind.type.TypeBindings context, tools.jackson.databind.type.TypeFactory typeFactory)
      Specified by:
      modifyType in class tools.jackson.databind.type.TypeModifier
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException