Package io.micronaut.rabbitmq.bind
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
ConstructorDescriptionRabbitHeaderBinder
(io.micronaut.core.convert.ConversionService conversionService) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.bind.ArgumentBinder.BindingResult<Object>
bind
(io.micronaut.core.convert.ArgumentConversionContext<Object> context, RabbitConsumerState messageState) Class<io.micronaut.messaging.annotation.MessageHeader>
-
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
- Specified by:
getAnnotationType
in interfaceio.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 interfaceio.micronaut.core.bind.ArgumentBinder<Object,
RabbitConsumerState>
-