Class NatsConnectionBinder

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

@Singleton public class NatsConnectionBinder extends Object implements NatsTypeArgumentBinder<io.nats.client.Connection>
Binds an argument type Message.
Since:
3.1.0
Author:
Joachim Grimm
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.type.Argument<io.nats.client.Connection>
     
    io.micronaut.core.bind.ArgumentBinder.BindingResult<io.nats.client.Connection>
    bind(io.micronaut.core.convert.ArgumentConversionContext<io.nats.client.Connection> context, io.nats.client.Message source)
     

    Methods inherited from class java.lang.Object

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

    • NatsConnectionBinder

      public NatsConnectionBinder()
  • Method Details

    • argumentType

      public io.micronaut.core.type.Argument<io.nats.client.Connection> argumentType()
      Specified by:
      argumentType in interface io.micronaut.core.bind.TypeArgumentBinder<io.nats.client.Connection,io.nats.client.Message>
    • bind

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