Interface ArgumentBinderRegistry<S>

  • Type Parameters:
    S - type Generic

    public interface ArgumentBinderRegistry<S>
    A registry of ArgumentBinder instances.
    Since:
    1.0
    • Method Detail

      • addRequestArgumentBinder

        default <T,​ST> void addRequestArgumentBinder​(ArgumentBinder<T,​ST> binder)
        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
      • findArgumentBinder

        <T> java.util.Optional<ArgumentBinder<T,​S>> findArgumentBinder​(Argument<T> argument,
                                                                             S source)
        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