Class ProxyUtils

java.lang.Object
com.bobocode.bring.core.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, Constructor<?> constructor, Object[] args)
      Creates a proxy instance for the given class using a specified constructor and arguments.
      Parameters:
      clazz - The class to create a proxy for
      constructor - The constructor to be used for proxy creation
      args - The arguments to pass to the constructor
      Returns:
      The proxy object for the specified class