Package io.micronaut.nats.bind
Class NatsHeaderBinder
java.lang.Object
io.micronaut.nats.bind.NatsHeaderBinder
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader,
,Object, io.nats.client.Message> io.micronaut.core.bind.ArgumentBinder<Object,
,io.nats.client.Message> NatsAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader>
,NatsArgumentBinder<Object>
@Singleton
public class NatsHeaderBinder
extends Object
implements NatsAnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader>
Binds an argument of with the
MessageHeader
annotation from the Message
.- Since:
- 3.1.0
- Author:
- Joachim Grimm
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
-
Constructor Summary
ConstructorDescriptionNatsHeaderBinder
(io.micronaut.core.convert.ConversionService conversionService) Default constructor. -
Method Summary
-
Constructor Details
-
NatsHeaderBinder
public NatsHeaderBinder(io.micronaut.core.convert.ConversionService conversionService) Default constructor.- Parameters:
conversionService
- The conversation service
-
-
Method Details
-
getAnnotationType
- Specified by:
getAnnotationType
in interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.MessageHeader,
Object, io.nats.client.Message>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, io.nats.client.Message messageState) - Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<Object,
io.nats.client.Message>
-