Class SpringDataJackson3Configuration.PageModule

java.lang.Object
tools.jackson.databind.JacksonModule
tools.jackson.databind.module.SimpleModule
org.springframework.data.web.config.SpringDataJackson3Configuration.PageModule
All Implemented Interfaces:
Serializable, tools.jackson.core.Versioned
Enclosing class:
SpringDataJackson3Configuration

public static class SpringDataJackson3Configuration.PageModule extends SimpleModule
A Jackson module customizing the serialization of PageImpl instances depending on the SpringDataWebSettings handed into the instance. In case of EnableSpringDataWebSupport.PageSerializationMode.DIRECT being configured, a no-op StdConverter is registered to issue a one-time warning about the mode being used (as it's not recommended). EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO would register a converter wrapping PageImpl instances into PagedModel.
Since:
4.0
Author:
Oliver Drotbohm
See Also: