Class DefaultBodyAnnotationBinder<T>

    • 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
      protected io.micronaut.core.convert.ConversionService<?> conversionService  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultBodyAnnotationBinder​(io.micronaut.core.convert.ConversionService conversionService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind​(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source)  
      java.lang.Class<Body> getAnnotationType()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • conversionService

        protected final io.micronaut.core.convert.ConversionService<?> conversionService
    • Constructor Detail

      • DefaultBodyAnnotationBinder

        public DefaultBodyAnnotationBinder​(io.micronaut.core.convert.ConversionService conversionService)
        Parameters:
        conversionService - The conversion service
    • Method Detail

      • getAnnotationType

        public java.lang.Class<Body> getAnnotationType()
        Specified by:
        getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<Body,​T,​HttpRequest<?>>
        Specified by:
        getAnnotationType in interface BodyArgumentBinder<T>
        Returns:
        The required annotation type
      • 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<?>>