Interface ArgumentBinderRegistry<S>

Type Parameters:
S - type Generic
All Known Subinterfaces:
RequestBinderRegistry
All Known Implementing Classes:
DefaultRequestBinderRegistry, NettyServerRequestBinderRegistry, WebSocketStateBinderRegistry

public interface ArgumentBinderRegistry<S>
A registry of ArgumentBinder instances.
Since:
1.0
Author:
Graeme Rocher
  • Method Details

    • addRequestArgumentBinder

      @Deprecated(since="4", forRemoval=true) default <T, ST> void addRequestArgumentBinder(ArgumentBinder<T,ST> binder)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds a request argument binder to the registry.
      Type Parameters:
      T - The argument type
      ST - The source type
      Parameters:
      binder - The binder
      Since:
      2.0
    • addArgumentBinder

      default <T> void addArgumentBinder(ArgumentBinder<T,S> binder)
      Adds a request argument binder to the registry.
      Type Parameters:
      T - The argument type
      Parameters:
      binder - The binder
      Since:
      4.0.0
    • findArgumentBinder

      @Deprecated(since="4", forRemoval=true) default <T> Optional<ArgumentBinder<T,S>> findArgumentBinder(Argument<T> argument, S source)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Locate an ArgumentBinder for the given argument and source type.
      Type Parameters:
      T - The argument type
      Parameters:
      argument - The argument
      source - The source
      Returns:
      An Optional of ArgumentBinder
    • findArgumentBinder

      <T> Optional<ArgumentBinder<T,S>> findArgumentBinder(Argument<T> argument)
      Locate an ArgumentBinder for the given argument.
      Type Parameters:
      T - The argument type
      Parameters:
      argument - The argument
      Returns:
      An Optional of ArgumentBinder
      Since:
      4.0.0