Package io.micronaut.rabbitmq.bind
Class RabbitHeadersBinder
java.lang.Object
io.micronaut.rabbitmq.bind.RabbitHeadersBinder
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<RabbitHeaders,
,Object, RabbitConsumerState> io.micronaut.core.bind.ArgumentBinder<Object,
,RabbitConsumerState> RabbitAnnotatedArgumentBinder<RabbitHeaders>
,RabbitArgumentBinder<Object>
@Singleton
public class RabbitHeadersBinder
extends Object
implements RabbitAnnotatedArgumentBinder<RabbitHeaders>
Binds an argument of with the
RabbitHeaders
annotation from the RabbitConsumerState
.- Since:
- 2.5.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
ConstructorDescriptionRabbitHeadersBinder
(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 source)
-
Constructor Details
-
RabbitHeadersBinder
public RabbitHeadersBinder(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<RabbitHeaders,
Object, RabbitConsumerState>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, RabbitConsumerState source) - Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<Object,
RabbitConsumerState>
-