Class JMSArgumentBinderRegistry

java.lang.Object
io.micronaut.jms.bind.JMSArgumentBinderRegistry
All Implemented Interfaces:
io.micronaut.core.bind.ArgumentBinderRegistry<jakarta.jms.Message>

@Internal @Singleton public class JMSArgumentBinderRegistry extends Object implements io.micronaut.core.bind.ArgumentBinderRegistry<jakarta.jms.Message>
An ArgumentBinderRegistry for all implementations of ArgumentBinder capable of binding a Message.
Since:
1.0.0
Author:
Elliott Pope
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    JMSArgumentBinderRegistry(io.micronaut.core.convert.ConversionService conversionService, Deserializer deserializer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,jakarta.jms.Message>>
    findArgumentBinder(io.micronaut.core.type.Argument<T> argument)
     
    void
    registerArgumentBinder(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?,?,?> binder)
    Registers an ArgumentBinder.
     
    void
    unregisterArgumentBinder(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?,?,?> binder)
    Remove a registered binder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.micronaut.core.bind.ArgumentBinderRegistry

    addArgumentBinder, addRequestArgumentBinder, findArgumentBinder
  • Constructor Details

    • JMSArgumentBinderRegistry

      public JMSArgumentBinderRegistry(io.micronaut.core.convert.ConversionService conversionService, Deserializer deserializer)
  • Method Details

    • registerArgumentBinder

      public void registerArgumentBinder(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?,?,?> binder)
      Registers an ArgumentBinder. Implement Ordered to override the default binder for the parameter annotation type.
      Parameters:
      binder - the binder
    • unregisterArgumentBinder

      public void unregisterArgumentBinder(io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<?,?,?> binder)
      Remove a registered binder. Primarily for testing.
      Parameters:
      binder - the binder to remove
    • findArgumentBinder

      public <T> Optional<io.micronaut.core.bind.ArgumentBinder<T,jakarta.jms.Message>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument)
      Specified by:
      findArgumentBinder in interface io.micronaut.core.bind.ArgumentBinderRegistry<jakarta.jms.Message>
    • toString

      public String toString()
      Overrides:
      toString in class Object