@Singleton public class DefaultMqttBinderRegistry extends java.lang.Object implements MqttBinderRegistry
MqttBinderRegistry that searches
for binders based on argument annotations, then based on the argument
type.| Constructor and Description |
|---|
DefaultMqttBinderRegistry(FallbackMqttBinder<?> fallbackMqttBinder,
MqttBinder<?,?>... binders)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> MqttBinder<?,T> |
findArgumentBinder(io.micronaut.core.type.Argument<T> argument)
Finds a binder for the given argument.
|
public DefaultMqttBinderRegistry(FallbackMqttBinder<?> fallbackMqttBinder, MqttBinder<?,?>... binders)
fallbackMqttBinder - The binder to use when one cannot be found for an argumentbinders - The list of binders to choose from to bind an argumentpublic <T> MqttBinder<?,T> findArgumentBinder(io.micronaut.core.type.Argument<T> argument)
MqttBinderRegistryfindArgumentBinder in interface MqttBinderRegistryT - The argument typeargument - The argument