@Singleton public class RabbitHeaderBinder extends Object implements RabbitAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header>
Header
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<Object> |
bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context,
RabbitConsumerState messageState) |
Class<io.micronaut.messaging.annotation.Header> |
getAnnotationType() |
public RabbitHeaderBinder(io.micronaut.core.convert.ConversionService conversionService)
conversionService
- The conversion service to convert the bodypublic Class<io.micronaut.messaging.annotation.Header> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header,Object,RabbitConsumerState>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, RabbitConsumerState messageState)
bind
in interface io.micronaut.core.bind.ArgumentBinder<Object,RabbitConsumerState>