Class SpringPageableRequestArgumentBinder

java.lang.Object
io.micronaut.data.spring.runtime.http.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 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 Object>
  • Field Summary

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.type.Argument<org.springframework.data.domain.Pageable>
     
    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

    matches, superTypes
  • Field Details

    • TYPE

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

    • SpringPageableRequestArgumentBinder

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

    • 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<?>>