@Singleton public class PubSubBinderRegistry extends java.lang.Object implements io.micronaut.core.bind.ArgumentBinderRegistry<PubSubConsumerState>
Constructor and Description |
---|
PubSubBinderRegistry(PubSubDefaultArgumentBinder defaultBinder,
PubSubArgumentBinder... binders)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,PubSubConsumerState>> |
findArgumentBinder(io.micronaut.core.type.Argument<T> argument,
PubSubConsumerState source) |
public PubSubBinderRegistry(PubSubDefaultArgumentBinder defaultBinder, PubSubArgumentBinder... binders)
defaultBinder
- The default binder to be used if there's no binder is foundbinders
- List of registered PubSubArgumentBinder
binderspublic <T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,PubSubConsumerState>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument, PubSubConsumerState source)
findArgumentBinder
in interface io.micronaut.core.bind.ArgumentBinderRegistry<PubSubConsumerState>