@Singleton public class RabbitHeadersBinder extends java.lang.Object implements RabbitAnnotatedArgumentBinder<RabbitHeaders>
RabbitHeaders
annotation from the RabbitConsumerState
.Constructor and Description |
---|
RabbitHeadersBinder(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 source) |
java.lang.Class<RabbitHeaders> |
getAnnotationType() |
public RabbitHeadersBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
conversionService
- The conversion service to convert the bodypublic java.lang.Class<RabbitHeaders> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<RabbitHeaders,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 source)
bind
in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,RabbitConsumerState>