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 ofProjection
based on the generic parameterized type. The specific, generically typed version of the Projection class is supplied here in the form of aJavaType
instance. Also, to work, the parameter type should be registered withTypeFactory.addReference(Class, Class)
.- Author:
- Jeff Fischer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericProjectionAwareDeserializerModule.GenericProjectionDeserializers
-
Constructor Summary
Constructors Constructor Description GenericProjectionAwareDeserializerModule(com.fasterxml.jackson.databind.JavaType projectionType, TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getModuleName()
Object
getTypeId()
void
setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
com.fasterxml.jackson.core.Version
version()
-
-
-
Constructor Detail
-
GenericProjectionAwareDeserializerModule
public GenericProjectionAwareDeserializerModule(com.fasterxml.jackson.databind.JavaType projectionType, TypeFactory typeFactory)
-
-
Method Detail
-
getModuleName
public String getModuleName()
- Specified by:
getModuleName
in classcom.fasterxml.jackson.databind.Module
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
version
in interfacecom.fasterxml.jackson.core.Versioned
- Specified by:
version
in classcom.fasterxml.jackson.databind.Module
-
setupModule
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
- Specified by:
setupModule
in classcom.fasterxml.jackson.databind.Module
-
getTypeId
public Object getTypeId()
- Overrides:
getTypeId
in classcom.fasterxml.jackson.databind.Module
-
-