@Singleton public class RabbitBodyBinder extends java.lang.Object implements RabbitAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody>
MessageBody
annotation from the RabbitConsumerState
.Constructor and Description |
---|
RabbitBodyBinder(RabbitMessageSerDesRegistry serDesRegistry)
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 messageState) |
java.lang.Class<io.micronaut.messaging.annotation.MessageBody> |
getAnnotationType() |
public RabbitBodyBinder(RabbitMessageSerDesRegistry serDesRegistry)
serDesRegistry
- The registry to get a deserializerpublic java.lang.Class<io.micronaut.messaging.annotation.MessageBody> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody,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 messageState)
bind
in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,RabbitConsumerState>