@Singleton public class PubSubHeaderBinder extends java.lang.Object implements PubSubAnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header>
Header annotation. The target type
must be supported by the ConversionService. PubSub attributes are always of type
String.| Constructor and Description |
|---|
PubSubHeaderBinder(io.micronaut.core.convert.ConversionService conversionService) |
| 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,
PubSubConsumerState source) |
java.lang.Class<io.micronaut.messaging.annotation.Header> |
getAnnotationType() |
public PubSubHeaderBinder(io.micronaut.core.convert.ConversionService conversionService)
public java.lang.Class<io.micronaut.messaging.annotation.Header> getAnnotationType()
getAnnotationType in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.messaging.annotation.Header,java.lang.Object,PubSubConsumerState>public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context,
PubSubConsumerState source)
bind in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,PubSubConsumerState>