Interface ClientProxier

All Known Implementing Classes:
AbstractClientProxier, ReflectiveClientProxier
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

A supplier of ClientProxy instances.
Author:
Laird Nelson
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <R> R
    clientProxy(Request<R> r, Supplier<? extends R> instanceSupplier)
    Returns a contextual reference which is also a ClientProxy, given a Supplier of contextual instances of the appropriate type.
  • Method Details

    • clientProxy

      <R> R clientProxy(Request<R> r, Supplier<? extends R> instanceSupplier)
      Returns a contextual reference which is also a ClientProxy, given a Supplier of contextual instances of the appropriate type.

      Implementations of this method may return null.

      Type Parameters:
      R - the type of the contextual reference
      Parameters:
      r - the Request necessitating this invocation; must not be null
      instanceSupplier - a Supplier of contextual instances of the appropriate type; must not be null
      Returns:
      a contextual reference, which may be null
      Throws:
      NullPointerException - if any argument is null
      See Also: