Class RabbitPropertyBinder

java.lang.Object
io.micronaut.rabbitmq.bind.RabbitPropertyBinder
All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<RabbitProperty,Object,RabbitConsumerState>, io.micronaut.core.bind.ArgumentBinder<Object,RabbitConsumerState>, RabbitAnnotatedArgumentBinder<RabbitProperty>, RabbitArgumentBinder<Object>

@Singleton public class RabbitPropertyBinder extends Object implements RabbitAnnotatedArgumentBinder<RabbitProperty>
Binds an argument of with the RabbitProperty annotation from the RabbitConsumerState.
Since:
1.1.0
Author:
James Kleeh
  • Nested Class Summary

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

    io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    RabbitPropertyBinder(io.micronaut.core.convert.ConversionService conversionService)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.bind.ArgumentBinder.BindingResult<Object>
    bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, RabbitConsumerState messageState)
     
     
    boolean
    supports(io.micronaut.core.convert.ArgumentConversionContext<Object> context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.bind.ArgumentBinder

    createSpecific
  • Constructor Details

    • RabbitPropertyBinder

      public RabbitPropertyBinder(io.micronaut.core.convert.ConversionService conversionService)
      Default constructor.
      Parameters:
      conversionService - The conversion service to convert the body
  • Method Details

    • getAnnotationType

      public Class<RabbitProperty> getAnnotationType()
      Specified by:
      getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<RabbitProperty,Object,RabbitConsumerState>
    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, RabbitConsumerState messageState)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<Object,RabbitConsumerState>
    • supports

      public boolean supports(io.micronaut.core.convert.ArgumentConversionContext<Object> context)
      Parameters:
      context - The argument context
      Returns:
      True if this binder can bind the argument