Package io.micronaut.nats.bind
Class NatsBodyBinder
java.lang.Object
io.micronaut.nats.bind.NatsBodyBinder
- All Implemented Interfaces:
- io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody,,- Object, - io.nats.client.Message> - io.micronaut.core.bind.ArgumentBinder<Object,,- io.nats.client.Message> - NatsAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody>,- NatsArgumentBinder<Object>
@Singleton
public class NatsBodyBinder
extends Object
implements NatsAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody>
Binds an argument of with the 
MessageBody annotation from the Message.- Since:
- 1.0.0
- Author:
- jgrimm
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinderio.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
- 
Constructor SummaryConstructorsConstructorDescriptionNatsBodyBinder(NatsMessageSerDesRegistry serDesRegistry) Default constructor.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.bind.ArgumentBindercreateSpecific
- 
Constructor Details- 
NatsBodyBinderDefault constructor.- Parameters:
- serDesRegistry- The registry to get a deserializer
 
 
- 
- 
Method Details- 
getAnnotationType- Specified by:
- getAnnotationTypein interface- io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageBody,- Object, - io.nats.client.Message> 
 
- 
bindpublic io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, io.nats.client.Message messageState) - Specified by:
- bindin interface- io.micronaut.core.bind.ArgumentBinder<Object,- io.nats.client.Message> 
 
 
-