Interface ClientProxier
- All Known Implementing Classes:
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 source of
Proxy instances representing client proxies.- Author:
- Laird Nelson
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<R> RclientProxy(Id id, Supplier<? extends R> instanceSupplier)
-
Method Details
-
clientProxy
Returns a contextual reference which is also aProxy, given aSupplierof contextual instances of the appropriate type.Implementations of this method may return
null.- Type Parameters:
R- the type of the contextual reference- Parameters:
id- anIdqualifying the contextual instance that will be proxied; must not benullinstanceSupplier- aSupplierof 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:
-