Class RequestBeanAnnotationBinder<T>

java.lang.Object
io.micronaut.http.bind.binders.RequestBeanAnnotationBinder<T>
Type Parameters:
T -
All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<RequestBean,T,HttpRequest<?>>, io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>, AnnotatedRequestArgumentBinder<RequestBean,T>, PostponedRequestArgumentBinder<T>, RequestArgumentBinder<T>

public class RequestBeanAnnotationBinder<T> extends Object implements AnnotatedRequestArgumentBinder<RequestBean,T>, PostponedRequestArgumentBinder<T>
Used to bind Bindable parameters to a Bean object. NOTE: The binder is annotates as postponed to allow injecting values added by filters.
Since:
2.0
See Also:
  • Constructor Details

    • RequestBeanAnnotationBinder

      public RequestBeanAnnotationBinder(RequestBinderRegistry requestBinderRegistry)
      Parameters:
      requestBinderRegistry - Original request binder registry
  • Method Details

    • getAnnotationType

      public Class<RequestBean> getAnnotationType()
      Specified by:
      getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<RequestBean,T,HttpRequest<?>>
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>