Class ProxyInstanceFactory
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.support.ProxyInstanceFactory
-
public class ProxyInstanceFactory extends Object
The type Proxy instance factory.- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description ProxyInstanceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TnewInstanceOfInterfaces(Class<T> interfaceType, Supplier<InvocationHandler> invocationHandlerSupplier, Class<?>... otherInterfaces)new instance of target class
-
-
-
Method Detail
-
newInstanceOfInterfaces
public static <T> T newInstanceOfInterfaces(Class<T> interfaceType, Supplier<InvocationHandler> invocationHandlerSupplier, Class<?>... otherInterfaces)
new instance of target class- Type Parameters:
T- the type parameter- Parameters:
interfaceType- the interface typeinvocationHandlerSupplier- the invocation handler supplierotherInterfaces- the other interfaces- Returns:
- t
- Throws:
IllegalStateException- when unable create target interface Proxy Class
-
-