Class SpringDataJacksonConfiguration.PageModule

java.lang.Object
com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.module.SimpleModule
org.springframework.data.web.config.SpringDataJacksonConfiguration.PageModule
All Implemented Interfaces:
Versioned, Serializable
Enclosing class:
SpringDataJacksonConfiguration

public static class SpringDataJacksonConfiguration.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.
Author:
Oliver Drotbohm
See Also: