@Singleton public class RabbitBodyBinder extends Object implements RabbitAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body>
Body
annotation from the RabbitConsumerState
.Constructor and Description |
---|
RabbitBodyBinder(RabbitMessageSerDesRegistry serDesRegistry)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> |
bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context,
RabbitConsumerState messageState) |
Class<io.micronaut.messaging.annotation.Body> |
getAnnotationType() |
public RabbitBodyBinder(RabbitMessageSerDesRegistry serDesRegistry)
serDesRegistry
- The registry to get a deserializerpublic Class<io.micronaut.messaging.annotation.Body> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body,Object,RabbitConsumerState>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, RabbitConsumerState messageState)
bind
in interface io.micronaut.core.bind.ArgumentBinder<Object,RabbitConsumerState>