Package io.micronaut.nats.bind
Class NatsHeadersBinder
java.lang.Object
io.micronaut.nats.bind.NatsHeadersBinder
- All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<io.nats.client.impl.Headers,
,io.nats.client.Message> io.micronaut.core.bind.TypeArgumentBinder<io.nats.client.impl.Headers,
,io.nats.client.Message> NatsArgumentBinder<io.nats.client.impl.Headers>
,NatsTypeArgumentBinder<io.nats.client.impl.Headers>
@Singleton
public class NatsHeadersBinder
extends Object
implements NatsTypeArgumentBinder<io.nats.client.impl.Headers>
Binds an argument of type
Headers
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
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.type.Argument<io.nats.client.impl.Headers>
io.micronaut.core.bind.ArgumentBinder.BindingResult<io.nats.client.impl.Headers>
bind
(io.micronaut.core.convert.ArgumentConversionContext<io.nats.client.impl.Headers> context, io.nats.client.Message source)
-
Constructor Details
-
NatsHeadersBinder
public NatsHeadersBinder()
-
-
Method Details
-
argumentType
public io.micronaut.core.type.Argument<io.nats.client.impl.Headers> argumentType()- Specified by:
argumentType
in interfaceio.micronaut.core.bind.TypeArgumentBinder<io.nats.client.impl.Headers,
io.nats.client.Message>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<io.nats.client.impl.Headers> bind(io.micronaut.core.convert.ArgumentConversionContext<io.nats.client.impl.Headers> context, io.nats.client.Message source) - Specified by:
bind
in interfaceio.micronaut.core.bind.ArgumentBinder<io.nats.client.impl.Headers,
io.nats.client.Message>
-