@Singleton public class RabbitHeaderBinder extends java.lang.Object implements RabbitAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader>
MessageHeader
annotation from the RabbitConsumerState
.Constructor and Description |
---|
RabbitHeaderBinder(io.micronaut.core.convert.ConversionService conversionService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> |
bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context,
RabbitConsumerState messageState) |
java.lang.Class<io.micronaut.messaging.annotation.MessageHeader> |
getAnnotationType() |
public RabbitHeaderBinder(io.micronaut.core.convert.ConversionService conversionService)
conversionService
- The conversion service to convert the bodypublic java.lang.Class<io.micronaut.messaging.annotation.MessageHeader> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader,java.lang.Object,RabbitConsumerState>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context, RabbitConsumerState messageState)
bind
in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,RabbitConsumerState>