Class ProxyUtils

java.lang.Object
io.github.blyznytsiaorg.bibernate.utils.ProxyUtils

public class ProxyUtils extends Object
Utility class providing methods to create proxies.
Since:
1.0
Author:
Blyzhnytsia Team
  • Constructor Details

    • ProxyUtils

      public ProxyUtils()
  • Method Details

    • createProxy

      public Object createProxy(Class<?> clazz, Supplier<?> supplier)
      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 created
      supplier - the supplier to delegate method invocations to object
      Returns:
      a dynamic proxy instance for the specified class