Class PubSubHeaderBinder

  • All Implemented Interfaces:
    io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header,​java.lang.Object,​PubSubConsumerState>, io.micronaut.core.bind.ArgumentBinder<java.lang.Object,​PubSubConsumerState>, PubSubAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header>, PubSubArgumentBinder<java.lang.Object>

    @Singleton
    public class PubSubHeaderBinder
    extends java.lang.Object
    implements PubSubAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header>
    Binds an argument annotated with Header annotation. The target type must be supported by the ConversionService. PubSub attributes are always of type String.
    Since:
    2.0.0
    Author:
    Vinicius Carvalho
    • 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>
    • Constructor Summary

      Constructors 
      Constructor Description
      PubSubHeaderBinder​(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<java.lang.Object> bind​(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context, PubSubConsumerState source)  
      java.lang.Class<io.micronaut.messaging.annotation.Header> getAnnotationType()  
      • Methods inherited from class java.lang.Object

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

      • PubSubHeaderBinder

        public PubSubHeaderBinder​(io.micronaut.core.convert.ConversionService conversionService)
    • Method Detail

      • getAnnotationType

        public java.lang.Class<io.micronaut.messaging.annotation.Header> getAnnotationType()
        Specified by:
        getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header,​java.lang.Object,​PubSubConsumerState>
      • bind

        public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind​(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context,
                                                                                          PubSubConsumerState source)
        Specified by:
        bind in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,​PubSubConsumerState>