Class ModelRequestArgumentBinder

java.lang.Object
io.micronaut.spring.web.bind.ModelRequestArgumentBinder
All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<org.springframework.ui.Model,io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.TypeArgumentBinder<org.springframework.ui.Model,io.micronaut.http.HttpRequest<?>>, io.micronaut.http.bind.binders.RequestArgumentBinder<org.springframework.ui.Model>, io.micronaut.http.bind.binders.TypedRequestArgumentBinder<org.springframework.ui.Model>

@Requires(classes=org.springframework.ui.Model.class) @Singleton @Internal public class ModelRequestArgumentBinder extends Object implements io.micronaut.http.bind.binders.TypedRequestArgumentBinder<org.springframework.ui.Model>
Binds the Spring Model argument for controllers.
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 String
    The name of the request attribute to use.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.type.Argument<org.springframework.ui.Model>
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<org.springframework.ui.Model>
    bind(io.micronaut.core.convert.ArgumentConversionContext<org.springframework.ui.Model> 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

  • Constructor Details

    • ModelRequestArgumentBinder

      public ModelRequestArgumentBinder()
  • Method Details

    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<org.springframework.ui.Model> bind(io.micronaut.core.convert.ArgumentConversionContext<org.springframework.ui.Model> context, io.micronaut.http.HttpRequest<?> source)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<org.springframework.ui.Model,io.micronaut.http.HttpRequest<?>>
    • argumentType

      public io.micronaut.core.type.Argument<org.springframework.ui.Model> argumentType()
      Specified by:
      argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<org.springframework.ui.Model,io.micronaut.http.HttpRequest<?>>