Class ByteBuddyProxyFactory
java.lang.Object
dev.restate.bytebuddy.proxysupport.ByteBuddyProxyFactory
- All Implemented Interfaces:
ProxyFactory
ByteBuddy-based proxy factory that supports both interfaces and concrete classes. This
implementation can create proxies for any class that is not final. Uses Objenesis to instantiate
objects without calling constructors, which allows proxying classes that don't have a no-arg
constructor. Uses TypeCache to cache generated proxy classes for better performance
(thread-safe).
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.restate.common.reflections.ProxyFactory
ProxyFactory.MethodInterceptor, ProxyFactory.MethodInvocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @Nullable TcreateProxy(Class<T> clazz, ProxyFactory.MethodInterceptor interceptor) If returns null, it's not supported.
-
Constructor Details
-
ByteBuddyProxyFactory
public ByteBuddyProxyFactory()
-
-
Method Details
-
createProxy
Description copied from interface:ProxyFactoryIf returns null, it's not supported.- Specified by:
createProxyin interfaceProxyFactory
-