Class RabbitBinderRegistry

java.lang.Object
io.micronaut.rabbitmq.bind.RabbitBinderRegistry
All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinderRegistry<RabbitConsumerState>

@Singleton public class RabbitBinderRegistry extends Object implements io.micronaut.core.bind.ArgumentBinderRegistry<RabbitConsumerState>
Used to determine which RabbitArgumentBinder to use for any given argument.
Since:
1.1.0
Author:
James Kleeh
  • Constructor Details

    • RabbitBinderRegistry

      public RabbitBinderRegistry(RabbitDefaultBinder defaultBinder, RabbitArgumentBinder... binders)
      Default constructor.
      Parameters:
      defaultBinder - The binder to use when one cannot be found for an argument
      binders - The list of binders to choose from to bind an argument
  • Method Details

    • findArgumentBinder

      public <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,RabbitConsumerState>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument)
      Specified by:
      findArgumentBinder in interface io.micronaut.core.bind.ArgumentBinderRegistry<RabbitConsumerState>