Class SpringPageableRequestArgumentBinder

  • All Implemented Interfaces:
    io.micronaut.core.bind.ArgumentBinder<org.springframework.data.domain.Pageable,​io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.TypeArgumentBinder<org.springframework.data.domain.Pageable,​io.micronaut.http.HttpRequest<?>>, io.micronaut.http.bind.binders.RequestArgumentBinder<org.springframework.data.domain.Pageable>, io.micronaut.http.bind.binders.TypedRequestArgumentBinder<org.springframework.data.domain.Pageable>

    @Requires(classes={io.micronaut.http.bind.binders.RequestArgumentBinder.class,org.springframework.data.domain.Pageable.class})
    @Singleton
    public class SpringPageableRequestArgumentBinder
    extends java.lang.Object
    implements io.micronaut.http.bind.binders.TypedRequestArgumentBinder<org.springframework.data.domain.Pageable>
    Spring version of pageable binder.
    Since:
    1.0
    Author:
    graemerocher
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder

        io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.micronaut.core.type.Argument<org.springframework.data.domain.Pageable> TYPE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.core.type.Argument<org.springframework.data.domain.Pageable> argumentType()  
      io.micronaut.core.bind.ArgumentBinder.BindingResult<org.springframework.data.domain.Pageable> bind​(io.micronaut.core.convert.ArgumentConversionContext<org.springframework.data.domain.Pageable> context, io.micronaut.http.HttpRequest<?> source)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.http.bind.binders.TypedRequestArgumentBinder

        superTypes
    • Field Detail

      • TYPE

        public static final io.micronaut.core.type.Argument<org.springframework.data.domain.Pageable> TYPE
    • Constructor Detail

      • SpringPageableRequestArgumentBinder

        protected SpringPageableRequestArgumentBinder​(DataConfiguration.PageableConfiguration configuration)
        Default constructor.
        Parameters:
        configuration - The configuration
    • Method Detail

      • argumentType

        public io.micronaut.core.type.Argument<org.springframework.data.domain.Pageable> argumentType()
        Specified by:
        argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<org.springframework.data.domain.Pageable,​io.micronaut.http.HttpRequest<?>>
      • bind

        public io.micronaut.core.bind.ArgumentBinder.BindingResult<org.springframework.data.domain.Pageable> bind​(io.micronaut.core.convert.ArgumentConversionContext<org.springframework.data.domain.Pageable> context,
                                                                                                                  io.micronaut.http.HttpRequest<?> source)
        Specified by:
        bind in interface io.micronaut.core.bind.ArgumentBinder<org.springframework.data.domain.Pageable,​io.micronaut.http.HttpRequest<?>>