Package io.micronaut.rabbitmq.bind
Class RabbitBodyBinder
- java.lang.Object
-
- io.micronaut.rabbitmq.bind.RabbitBodyBinder
-
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody,java.lang.Object,RabbitConsumerState>,io.micronaut.core.bind.ArgumentBinder<java.lang.Object,RabbitConsumerState>,RabbitAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody>,RabbitArgumentBinder<java.lang.Object>
@Singleton public class RabbitBodyBinder extends java.lang.Object implements RabbitAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody>
Binds an argument of with theMessageBodyannotation from theRabbitConsumerState.- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description RabbitBodyBinder(RabbitMessageSerDesRegistry serDesRegistry)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.MessageBody>getAnnotationType()
-
-
-
Constructor Detail
-
RabbitBodyBinder
public RabbitBodyBinder(RabbitMessageSerDesRegistry serDesRegistry)
Default constructor.- Parameters:
serDesRegistry- The registry to get a deserializer
-
-
Method Detail
-
getAnnotationType
public java.lang.Class<io.micronaut.messaging.annotation.MessageBody> getAnnotationType()
- Specified by:
getAnnotationTypein interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody,java.lang.Object,RabbitConsumerState>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context, RabbitConsumerState messageState)- Specified by:
bindin interfaceio.micronaut.core.bind.ArgumentBinder<java.lang.Object,RabbitConsumerState>
-
-