@Singleton public class RabbitDefaultBinder extends Object implements RabbitArgumentBinder<Object>
RabbitConsumerState
that is used if no other binder supports the argument.Constructor and Description |
---|
RabbitDefaultBinder(RabbitPropertyBinder propertyBinder,
RabbitBodyBinder bodyBinder)
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)
Checks if the argument name matches one of the
BasicProperties . |
public RabbitDefaultBinder(RabbitPropertyBinder propertyBinder, RabbitBodyBinder bodyBinder)
propertyBinder
- The property binderbodyBinder
- The body binderpublic io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, RabbitConsumerState messageState)
BasicProperties
.
If the name does not match, the body of the message is bound to the argument.bind
in interface io.micronaut.core.bind.ArgumentBinder<Object,RabbitConsumerState>
context
- The conversion contextmessageState
- The message state