Class GenericProjectionAwareDeserializerModule

java.lang.Object
com.fasterxml.jackson.databind.Module
com.broadleafcommerce.common.extension.mapping.GenericProjectionAwareDeserializerModule
All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned

public class GenericProjectionAwareDeserializerModule extends com.fasterxml.jackson.databind.Module
Jackson deserializer module capable of matching against specific variations of Projection based on the generic parameterized type. The specific, generically typed version of the Projection class is supplied here in the form of a JavaType instance. Also, to work, the parameter type should be registered with TypeFactory.addReference(Class, Class).
Author:
Jeff Fischer
  • Constructor Details

    • GenericProjectionAwareDeserializerModule

      public GenericProjectionAwareDeserializerModule(com.fasterxml.jackson.databind.JavaType projectionType, TypeFactory typeFactory)
  • Method Details

    • getModuleName

      public String getModuleName()
      Specified by:
      getModuleName in class com.fasterxml.jackson.databind.Module
    • version

      public com.fasterxml.jackson.core.Version version()
      Specified by:
      version in interface com.fasterxml.jackson.core.Versioned
      Specified by:
      version in class com.fasterxml.jackson.databind.Module
    • setupModule

      public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
      Specified by:
      setupModule in class com.fasterxml.jackson.databind.Module
    • getTypeId

      public Object getTypeId()
      Overrides:
      getTypeId in class com.fasterxml.jackson.databind.Module