@Singleton public class RabbitPropertyBinder extends java.lang.Object implements RabbitAnnotatedArgumentBinder<RabbitProperty>
RabbitProperty
annotation from the RabbitConsumerState
.Constructor and Description |
---|
RabbitPropertyBinder(io.micronaut.core.convert.ConversionService conversionService)
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,
RabbitConsumerState messageState) |
java.lang.Class<RabbitProperty> |
getAnnotationType() |
boolean |
supports(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context) |
public RabbitPropertyBinder(io.micronaut.core.convert.ConversionService conversionService)
conversionService
- The conversion service to convert the bodypublic java.lang.Class<RabbitProperty> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<RabbitProperty,java.lang.Object,RabbitConsumerState>
public io.micronaut.core.bind.ArgumentBinder.BindingResult<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context, RabbitConsumerState messageState)
bind
in interface io.micronaut.core.bind.ArgumentBinder<java.lang.Object,RabbitConsumerState>
public boolean supports(io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> context)
context
- The argument context