Class AbstractClientProxy<I>
java.lang.Object
org.microbean.reference.AbstractClientProxy<I>
- Type Parameters:
I
- the type of contextual instance the implementation proxies
- All Implemented Interfaces:
ClientProxy<I>
A skeletal implementation of the
ClientProxy
interface.- Author:
- Laird Nelson
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractClientProxy
(Supplier<? extends I> s) Creates a newAbstractClientProxy
. -
Method Summary
Modifier and TypeMethodDescriptionfinal I
$proxied()
Returns the instance being proxied, not thisClientProxy
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.microbean.reference.ClientProxy
$cast
-
Constructor Details
-
AbstractClientProxy
Creates a newAbstractClientProxy
.- Parameters:
s
- aSupplier
of contextual instances; must not benull
- Throws:
NullPointerException
- ifs
isnull
-
-
Method Details
-
$proxied
Description copied from interface:ClientProxy
Returns the instance being proxied, not thisClientProxy
.- Specified by:
$proxied
in interfaceClientProxy<I>
- Returns:
- the instance being proxied; never
null
; neverthis
-