Class RabbitHeaderBinder

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

@Singleton public class RabbitHeaderBinder extends Object implements RabbitAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader>
Binds an argument of with the MessageHeader 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
    RabbitHeaderBinder(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)
     
    Class<io.micronaut.messaging.annotation.MessageHeader>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RabbitHeaderBinder

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

    • getAnnotationType

      public Class<io.micronaut.messaging.annotation.MessageHeader> getAnnotationType()
      Specified by:
      getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader,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>