Class PageableDTO.PageableAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<PageableDTO.DtoFacade,PageableDTO>
info.ejava.examples.common.dto.paging.PageableDTO.PageableAdapter
Enclosing class:
PageableDTO

static class PageableDTO.PageableAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<PageableDTO.DtoFacade,PageableDTO>
This adapter is called by JAXB when a class -- like the PageableDTO -- declares a XmlJavaTypeAdapter to handle marshaling and demarshaling through a facade object. In this case the public class is immutable and JAXB wants to work with a mutable instance. This approach works seamlessly if not used as root object.