public final class ProxyUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
lazy(java.util.function.Supplier<T> delegateFactory,
java.lang.Class<T> iface) |
static <T> T |
trace(java.lang.Object delegate,
java.lang.Class<T> iface)
Wraps a proxy around something that implements some interface and logs all the calls (except those to methods
declared by
Object). |
public static <T> T lazy(java.util.function.Supplier<T> delegateFactory,
java.lang.Class<T> iface)
public static <T> T trace(java.lang.Object delegate,
java.lang.Class<T> iface)
Object).T - the interface type to wrap.delegate - the actual object to perform the invocations on.iface - the interface to wrap.