Package io.micronaut.nats.bind
Class NatsBinderRegistry
java.lang.Object
io.micronaut.nats.bind.NatsBinderRegistry
- All Implemented Interfaces:
- io.micronaut.core.bind.ArgumentBinderRegistry<io.nats.client.Message>
@Singleton
public class NatsBinderRegistry
extends Object
implements io.micronaut.core.bind.ArgumentBinderRegistry<io.nats.client.Message>
Used to determine which 
NatsArgumentBinder to use for any given argument.- Since:
- 1.0.0
- Author:
- jgrimm
- 
Constructor SummaryConstructorsConstructorDescriptionNatsBinderRegistry(NatsDefaultBinder defaultBinder, NatsArgumentBinder... binders) Default constructor.
- 
Method SummaryModifier and TypeMethodDescription<T> Optional<io.micronaut.core.bind.ArgumentBinder<T,io.nats.client.Message>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.bind.ArgumentBinderRegistryaddArgumentBinder, addRequestArgumentBinder, findArgumentBinder
- 
Constructor Details- 
NatsBinderRegistryDefault 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 the argument
 
 
- 
- 
Method Details- 
findArgumentBinderpublic <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,io.nats.client.Message>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument) - Specified by:
- findArgumentBinderin interface- io.micronaut.core.bind.ArgumentBinderRegistry<io.nats.client.Message>
 
 
-