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