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 TypeMethodDescription<R> R
clientProxy
(Request<R> r, Supplier<? extends R> instanceSupplier) Returns a contextual reference which is also aClientProxy
, given aSupplier
of contextual instances of the appropriate type.
-
Method Details
-
clientProxy
Returns a contextual reference which is also aClientProxy
, given aSupplier
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
- theRequest
necessitating this invocation; must not benull
instanceSupplier
- aSupplier
of contextual instances of the appropriate type; must not benull
- Returns:
- a contextual reference, which may be
null
- Throws:
NullPointerException
- if any argument isnull
- See Also:
-