@Introspected(classes=org.eclipse.paho.mqttv5.common.packet.MqttProperties.class) @Singleton public class MqttPropertyBinder extends java.lang.Object implements AnnotatedMqttBinder<MqttV5BindingContext,MqttProperty>
MqttProperties
.Constructor and Description |
---|
MqttPropertyBinder(io.micronaut.core.convert.ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Object> |
bindFrom(MqttV5BindingContext context,
io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> conversionContext)
Binds the given context and returns an optional value.
|
void |
bindTo(MqttV5BindingContext context,
java.lang.Object value,
io.micronaut.core.type.Argument<java.lang.Object> argument)
Binds the given value to the given context.
|
java.lang.Class<MqttProperty> |
getAnnotationType() |
public MqttPropertyBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
conversionService
- The conversion servicepublic java.lang.Class<MqttProperty> getAnnotationType()
getAnnotationType
in interface AnnotatedMqttBinder<MqttV5BindingContext,MqttProperty>
public void bindTo(MqttV5BindingContext context, java.lang.Object value, io.micronaut.core.type.Argument<java.lang.Object> argument)
MqttBinder
bindTo
in interface MqttBinder<MqttV5BindingContext,java.lang.Object>
context
- The message contextvalue
- The argument valueargument
- The publisher argumentpublic java.util.Optional<java.lang.Object> bindFrom(MqttV5BindingContext context, io.micronaut.core.convert.ArgumentConversionContext<java.lang.Object> conversionContext)
MqttBinder
bindFrom
in interface MqttBinder<MqttV5BindingContext,java.lang.Object>
context
- The method contextconversionContext
- The argument conversion context