Package io.micronaut.rabbitmq.bind
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 Summary
ConstructorDescriptionRabbitBinderRegistry
(RabbitDefaultBinder defaultBinder, RabbitArgumentBinder... binders) Default constructor. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<io.micronaut.core.bind.ArgumentBinder<T,
RabbitConsumerState>> findArgumentBinder
(io.micronaut.core.type.Argument<T> argument) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.bind.ArgumentBinderRegistry
addArgumentBinder, addRequestArgumentBinder, findArgumentBinder
-
Constructor Details
-
RabbitBinderRegistry
Default constructor.- Parameters:
defaultBinder
- The binder to use when one cannot be found for an argumentbinders
- 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 interfaceio.micronaut.core.bind.ArgumentBinderRegistry<RabbitConsumerState>
-