@Singleton public class NatsBodyBinder extends java.lang.Object implements NatsAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body>
Body
annotation from the Message
.Constructor and Description |
---|
NatsBodyBinder(NatsMessageSerDesRegistry 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,
io.nats.client.Message messageState) |
java.lang.Class<io.micronaut.messaging.annotation.Body> |
getAnnotationType() |
public NatsBodyBinder(NatsMessageSerDesRegistry serDesRegistry)
serDesRegistry
- The registry to get a deserializerpublic java.lang.Class<io.micronaut.messaging.annotation.Body> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Body,java.lang.Object,io.nats.client.Message>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context, io.nats.client.Message messageState)
bind
in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,io.nats.client.Message>