Class NatsDefaultBinder

java.lang.Object
io.micronaut.nats.bind.NatsDefaultBinder
All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinder<Object,io.nats.client.Message>, NatsArgumentBinder<Object>

@Singleton public class NatsDefaultBinder extends Object implements NatsArgumentBinder<Object>
The default binder for binding an argument from the Message that is used if no other binder supports the argument.
Since:
1.0.0
Author:
jgrimm
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder

    io.micronaut.core.bind.ArgumentBinder.BindingResult<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.bind.ArgumentBinder.BindingResult<Object>
    bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, io.nats.client.Message messageState)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NatsDefaultBinder

      public NatsDefaultBinder(NatsBodyBinder bodyBinder)
      Default constructor.
      Parameters:
      bodyBinder - Bodybinder
  • Method Details

    • bind

      public io.micronaut.core.bind.ArgumentBinder.BindingResult<Object> bind(io.micronaut.core.convert.ArgumentConversionContext<Object> context, io.nats.client.Message messageState)
      Specified by:
      bind in interface io.micronaut.core.bind.ArgumentBinder<Object,io.nats.client.Message>