Package io.micronaut.gcp.pubsub.bind
Class PubSubBinderRegistry
java.lang.Object
io.micronaut.gcp.pubsub.bind.PubSubBinderRegistry
- All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinderRegistry<PubSubConsumerState>
@Singleton
public class PubSubBinderRegistry
extends Object
implements io.micronaut.core.bind.ArgumentBinderRegistry<PubSubConsumerState>
- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
Constructor Summary
ConstructorDescriptionPubSubBinderRegistry
(PubSubDefaultArgumentBinder defaultBinder, PubSubArgumentBinder<?>... binders) Default constructor. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<io.micronaut.core.bind.ArgumentBinder<T,
PubSubConsumerState>> 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
-
PubSubBinderRegistry
public PubSubBinderRegistry(PubSubDefaultArgumentBinder defaultBinder, PubSubArgumentBinder<?>... binders) Default constructor.- Parameters:
defaultBinder
- The default binder to be used if there's no binder is foundbinders
- List of registeredPubSubArgumentBinder
binders
-
-
Method Details
-
findArgumentBinder
public <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,PubSubConsumerState>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument) - Specified by:
findArgumentBinder
in interfaceio.micronaut.core.bind.ArgumentBinderRegistry<PubSubConsumerState>
-