@Singleton public class RabbitBinderRegistry extends Object implements io.micronaut.core.bind.ArgumentBinderRegistry<RabbitConsumerState>
RabbitArgumentBinder
to use for any given argument.Constructor and Description |
---|
RabbitBinderRegistry(RabbitDefaultBinder defaultBinder,
RabbitArgumentBinder... binders)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> Optional<io.micronaut.core.bind.ArgumentBinder<T,RabbitConsumerState>> |
findArgumentBinder(io.micronaut.core.type.Argument<T> argument,
RabbitConsumerState source) |
public RabbitBinderRegistry(RabbitDefaultBinder defaultBinder, RabbitArgumentBinder... binders)
defaultBinder
- The binder to use when one cannot be found for an argumentbinders
- The list of binders to choose from to bind an argumentpublic <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,RabbitConsumerState>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument, RabbitConsumerState source)
findArgumentBinder
in interface io.micronaut.core.bind.ArgumentBinderRegistry<RabbitConsumerState>