@Singleton public class RabbitDefaultBinder extends java.lang.Object implements RabbitArgumentBinder<java.lang.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<java.lang.Object> |
bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.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<java.lang.Object> bind(io.micronaut.core.convert.ArgumentConversionContext<java.lang.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<java.lang.Object,RabbitConsumerState>
context
- The conversion contextmessageState
- The message state