Class ProxyUtils
java.lang.Object
io.github.blyznytsiaorg.bibernate.utils.ProxyUtils
Utility class providing methods to create proxies.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Handler class implementing MethodHandler for proxy invocation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateProxy
(Class<?> clazz, Supplier<?> supplier) Creates a dynamic proxy for the specified class using the provided supplier.
-
Constructor Details
-
ProxyUtils
public ProxyUtils()
-
-
Method Details
-
createProxy
Creates a dynamic proxy for the specified class using the provided supplier. This method generates a proxy instance that extends the specified class and delegates method invocations to the provided supplier.- Parameters:
clazz
- the class for which a proxy should be createdsupplier
- the supplier to delegate method invocations to object- Returns:
- a dynamic proxy instance for the specified class
-