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