public class ProxyInstanceFactory extends Object
| Constructor and Description |
|---|
ProxyInstanceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
newInstanceOfInterfaces(Class<T> interfaceType,
Supplier<InvocationHandler> invocationHandlerSupplier,
Class<?>... otherInterfaces)
new instance of target class
|
public static <T> T newInstanceOfInterfaces(Class<T> interfaceType, Supplier<InvocationHandler> invocationHandlerSupplier, Class<?>... otherInterfaces)
T - the type parameterinterfaceType - the interface typeinvocationHandlerSupplier - the invocation handler supplierotherInterfaces - the other interfacesIllegalStateException - when unable create target interface Proxy ClassCopyright © 2022. All rights reserved.